[python-win32] Executing a remote process via WMI in Win32.

Moore, Paul Paul.Moore at atosorigin.com
Tue Jul 8 14:18:15 EDT 2003


From: Tim Golden [mailto:tim.golden at viacom-outdoor.co.uk]
> I'd be keen to know if you get it working. When I
> have a moment, I'll dabble further but if someone
> gets there first I'll be very glad.

I've not got much further - I tried giving myself the "logon
as a batch job" privilege, but that didn't make much
difference.

However, the original poster was after a way of running a
process remotely. Rather than fighting with WMI, it might be
worth looking at http://www.sysinternals.com and checking the
"psutils" package. This includes a lot of command line
utilities, one of which is psexec, for running a process
on a remote computer. It may be easier to spawn psexec instead
of trying to get WMI working...

Paul.

PS One note I saw is that WMI doesn't allow creation of
   interactive processes "for security reasons". Pah. This
   won't be the problem here, as Notepad runs non-interactively
   quite happily (but uselessly). Nevertheless, it might be
   worth knowing...



More information about the Python-win32 mailing list