How do I get a list of all of the distinguished names for an OU
If I have an OU say IT within my domain sample.com. Making use of dsquery to get all of the OU you need to make use of. Using the following command will exceed the limit to 100,000 and only give you the distinguished name.
dsquery user OU=Sales,DC=Microsoft,DC=Com -o dn -limit 100000
0 Comments:
Post a Comment
<< Home