chiplarsen
IS-IT--Management
I am using Python 3.1. I am trying to start a process (.exe) on a remote server. I am running the script from another server. When I run this code, the process starts on the remote server and can be seen in the processes in the task manager. I need this process to be visible so I can monitor the program. Can anyone help with my issue? The admin 123 in the code is the userid and password that the application needs in order run. Thank you
Code:
import wmi
c = wmi.WMI("remote machine", user=r"remote machine\user", password="password")
c.Win32_Process.Create(CommandLine=r"C:\Program Files\McKHBOC\PMM\BIN\x12850.exe admin 123")