Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. connection = wmi.connect_server('192.168.170.101',user='DMZMINFIN\\oracle',password='1qaz@WSX3edc')
  2. c = wmi.WMI(wmi=connection)
  3. for process in c.Win32_Process():
  4.      print (process.ProcessId,process.Name)
  5. process_id, return_value = c.Win32_Process.Create(CommandLine="cmd.exe /c  notepad")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement