listing existing windows services with python

Alf P. Steinbach alfps at start.no
Tue Feb 16 07:48:09 EST 2010


* Tim Golden:
> On 16/02/2010 12:18, News123 wrote:
>> I don't use the script often, so if it would start a WMI service during
>> runtime and stop it afterwards it would be fine.
> 
> FWIW -- your other considerations notwithstanding -- I'm not aware
> of WMI having this effect. Generally you can assume that the WMI
> services are running (or not, if someone's shut them off) but
> I've never heard of them being started up by virtue of a call
> to the WMI subsystem and then stopped afterwards.
> 
> That said, I'd be interested if someone did have a pointer for this;
> worth putting a caveat in the docs if that were the case.
> 
> TJG

I just googled the filename from memory, found

   <url: http://www.neuber.com/taskmanager/process/wmiprvse.exe.html>

Don't know if I've disabled it because invoking wmic didn't produce it.

Uh, wait, since it hosts the provider service(s), perhaps...

Yes, 'wmic service list brief' which actually retrieves some information (I 
guess it can be anything, I remembered this from listing process command lines) 
started an [wmprvse.exe] process.

It terminated after the query/usage, but as I recall in some cases it doesn't.

I don't know how that works with programmatic access, but it's worth checking out.


Cheers,

- Alf



More information about the Python-list mailing list