Starting Win32 Service
placid
Bulkan at gmail.com
Wed Sep 27 00:39:28 EDT 2006
Hi all,
Using Tim Golden's wmi module you can get the service names
import wmi
c = wmi.WMI ()
stopped_services = c.Win32_Service (StartMode="Auto", State="Stopped")
if stopped_services:
for s in stopped_services:
print s.Caption, "service is not running"
else:
print "No auto services stopped"
http://tgolden.sc.sabren.com/python/wmi_cookbook.html#automatic_services
but how do i start services that are stopped?
Cheers
More information about the Python-list
mailing list