Check a windows service

Gabriel Genellina gagsl-py at
Tue Jan 16 18:32:33 CET 2007

"awel" <albert.wellens at> escribió en el mensaje
news:1168966952.965088.17740 at

> I'm new in python and I would like to know if it's possible to check if
> a specific windows service is present and if it's possible how can I
> do?

Yes, using the wmi module, but you'll have to search the Microsoft
documentation on how to enumerate services and their properties:
The code might look like this, but the names may be wrong:

import wmi
import pythoncom
w = wmi.WMI()
for s in w.Win32_Services():
  print s

Gabriel Genellina 

More information about the Python-list mailing list