Well you could script sc.exe which can remotely query service status.
sc \\servername query messenger
SERVICE_NAME: messenger
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 1 STOPPED
(NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 1077 (0x435)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
You can customize this even further based on your needs by passing
additional flags documented in the sc.exe command line help. I imagine
you could also use WMI if this does not produce the results you want.
Thanks,
-Steve
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Kern
Sent: Thursday, August 11, 2005 9:11 PM
To: activedirectory
Subject: [ActiveDir] query service
is it possible to write a script to query every member server/dc in
your domain to search if a specific service is running like dhcp or
dns and spit that out to a text file or html?
thanks
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/