Yup. You'd want WMI for that. Or more precisely a combination of ADSI
(to enumerate machines) and WMI (to query for the service). For sample
WMI scripts to enumerate services, check out
http://www.microsoft.com/technet/scriptcenter/scripts/os/services/defaul
t.mspx



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Kern
Sent: Thursday, August 11, 2005 7: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/

Reply via email to