|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 " _
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.