Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- connection = wmi.connect_server('192.168.170.101',user='DMZMINFIN\\oracle',password='1qaz@WSX3edc')
- c = wmi.WMI(wmi=connection)
- for process in c.Win32_Process():
- print (process.ProcessId,process.Name)
- process_id, return_value = c.Win32_Process.Create(CommandLine="cmd.exe /c notepad")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement