Export AD User Details

To list the name, department, and manager of all users in an Active Directory OU:

dsquery user -limit 200 OU=UserOU,OU=Sales,DC=contoso,DC=com | dsget user -ln -fn -dept -mgr > 
users.txt

Full documentation of Dsquery user and Dsget user.

Categorized: Software

Leave a Reply

Your email address will not be published. Required fields are marked *