"Lanteigne, Bob P." <[EMAIL PROTECTED]> writes:

> WMI makes all this info easy to get to.

To elaborate a bit...

You want the Win32_Service class:

  http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_service.asp

In particular, see the "State" field.

For a sample script which uses this class, see:

  http://unattended.sourceforge.net/apps.html#startup-type

For a more generic script, see instances.pl attached to:

  http://aspn.activestate.com/ASPN/Mail/Message/perl-win32-admin/1644207

(Try running it as "instances.pl Win32_Service".)

 - Pat
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to