L8knight
-
Total Posts
:
1
- Scores: 0
-
Reward points
:
0
- Joined: 12/3/2009
-
Status: offline
|
VBScript: Search for and Enumerate an OU
Tuesday, February 07, 2012 7:42 AM
( permalink)
I have an extremely large AD environment and have a need for a script that I can run, that would accept an OU name (ie: Indy) as input, search for that OU and then return a list of users for that OU. The users part I can do, but I'm stuck with finding the OU portion. I figured ADO is the best/quickest method but not real experienced using ADO. Can anyone get me started? Thanks in advance
|
|
|
|
59cobalt
-
Total Posts
:
981
- Scores: 91
-
Reward points
:
0
- Joined: 7/17/2011
-
Status: offline
|
Re:VBScript: Search for and Enumerate an OU
Tuesday, February 07, 2012 10:29 AM
( permalink)
Try running a query with scope "subtree" and LDAP filter "(&(objectclass=organizationalunit)(name=Indy))" on the domain root.
|
|
|
|