Hi all,
Using Tim Golden's wmi module you can get the service names
import wmi
c = wmi.WMI ()
stopped_service s = c.Win32_Service (StartMode="Aut o", State="Stopped" )
if stopped_service s:
for s in stopped_service s:
print s.Caption, "service is not running"
else:
print "No auto services stopped"
but how do i start services that are stopped?
Cheers
Using Tim Golden's wmi module you can get the service names
import wmi
c = wmi.WMI ()
stopped_service s = c.Win32_Service (StartMode="Aut o", State="Stopped" )
if stopped_service s:
for s in stopped_service s:
print s.Caption, "service is not running"
else:
print "No auto services stopped"
but how do i start services that are stopped?
Cheers
Comment