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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to