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:38:29 EDT 2006
[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.
Have a look at this example:
http://tgolden.sc.sabren.com/python/wmi_cookbook.html#automatic_services
and then at the Win32_Service WMI class:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/
wmi/win32_service.asp
and in particular at the StartService method
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