How can I enumerate all windows services and disable some of them?

Tim Golden tim.golden at viacom-outdoor.co.uk
Tue Aug 22 05:48:25 EDT 2006


[Tim Golden]

| [could.net at gmail.com]
| 
| | I know that Module win32service has some functions on manipulating
| | win32 services.
| | But I still have 2 questions:
| | 1. how to enumerate all services?
| | 2. how to disable a certain one?
| 
| You can use WMI to do this if you want.

... or I could actually read the question before answering.
I don't know if you can actually *disable* a service
from WMI. You can certainly stop it, but the status appears
to be a read-only option.

Sorry
TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. 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-list mailing list