S
Sergey
import win32com.client
loc = win32com.client.Dispatch("WbemScripting.SWbemLocator")
svc = loc.ConnectServer("srv", "root/cimv2", "(e-mail address removed)", "******")
sys = svc.get("Win32_Process")
sys.create("notepad.exe")
=>
Traceback (most recent call last):
File "remote.py", line 6, in ?
sys.create("notepad.exe")
TypeError: 'int' object is not callable
loc = win32com.client.Dispatch("WbemScripting.SWbemLocator")
svc = loc.ConnectServer("srv", "root/cimv2", "(e-mail address removed)", "******")
sys = svc.get("Win32_Process")
sys.create("notepad.exe")
=>
Traceback (most recent call last):
File "remote.py", line 6, in ?
sys.create("notepad.exe")
TypeError: 'int' object is not callable