You can use this URL
http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx
And/or you can refer to (for the WMI part) to Sample 2.60 to 2.64 -
WMIServices.wsf, vol 2, at http://www.lissware.net

HTH
/Alain 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Darren Mar-Elia
Sent: Thursday, August 11, 2005 7:47 PM
To: [email protected]
Subject: RE: [ActiveDir] query service

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/

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