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

Tim Golden tim.golden at viacom-outdoor.co.uk
Tue Jul 8 11:37:31 EDT 2003


From: Moore, Paul [mailto:Paul.Moore at atosorigin.com]

> If you look in MSDN, you'll find more incomprehensible gibberish than you
> have any interest in knowing. But if you work at it, and ignore the fact
> that there always seem to be 10 ways of doing anything, and only the most
> complicated one seems to actually *work*, you can get there :-)

Not half! The fact that I am a relative ignoramus in matters
 of COM / OLE / whatever-the-hell-it's-called-this-week means
 that translating the examples from VB-esque languages into Python
 is a suck-it-and-see process for me.

[... snip example of creating notepad ...]

Thanks for the clear example; I've managed to add a small
 bolt-on to my WMI module which lets me create a new
 instance of a WMI class on which I can then call the Create
 method. And it works (on the local machine). But it won't then
 let me call Terminate on it (or GetOwner, or anything else).
So that's got me beat.

There's too much to WMI. It's great and it solves loads of problems
 which would otherwise require all sorts of specialist plumbing.
 But there's too much to it and there's too many ways to do it.

> Hope this helps,
> Paul.

Well it helped me.

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-win32 mailing list