Andres Cheah
Technology Never Stops!!!
Friday, 25 March 2016
Microsoft: Query All Users in Active Directory
The command below allows you to query all the users in your Active Directory:
dsquery * -limit 0 -filter "(&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2))" >>allusers.csv
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment