vbs script to list all computers in OU

September 21, 2011 at 02:29:06
Specs: Windows XP
Hi; I need help creating a basic script to lookup all computers in an ou and have this info emailed to a specific email address. I have no idea how to start this so any help with be greatly appreciated. Thanks

See More: vbs script to list all computers in OU

Report •

September 21, 2011 at 04:34:29
I found this... should be a start...


Report •

September 21, 2011 at 04:40:52
Thank you

Report •

September 23, 2011 at 00:42:12
I have this LDAP query, but I'd like help digging deeper into the AD structure.
How would i be able to drill down into ou's etc?

"Select Name, Location from 'LDAP://DC=eur,DC=nsroot,DC=net' Where OU <> 'eqr' AND " _
& "objectClass='computer'"

My domain is eur.nsroot.net, I have an ou called eqr, which then contains another ou called eqr_gb > ou - eqr_ldn > ou - computers. I want the LDAP query to be able to go into the top level ou - eqr (in my case) and then locate everything inside each and every 'Computers' ou. the ou's within eqr are eqr_gb, eqr_fr and eqr_es.

When I run the script, it pulls in more than several thousand results - I only have 300 hosts.

Report •
Related Solutions

Ask Question