Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote Execute EXE in Visible Window

Status
Not open for further replies.

chiplarsen

IS-IT--Management
Jan 8, 2004
87
0
0
US
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")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top