Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vbscript to scan AD computers for either of 2 services

Status
Not open for further replies.

cbsarge

IS-IT--Management
Jun 20, 2001
219
US
I want to have a script scan AD for computers and then look on each of them for either of 2 services. Is this possible? If it finds either service I want to run a command against the remote machine.

Thanks for any help!

[!]The AutoSavers![/!] [2thumbsup]
 
What you want to do, then, is:
1) connect to AD
2) do a search for computer's names
3) use WMI to connect and get a list of services
4) parse the list for the services you want
5) run the command if you want to!

Tao Te Ching Discussions : Chapter 9 (includes links to previous chapters)
What is the nature of conflict?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top