1 min read

AD Users to file

AD Users to file

I have been wondering if it is possible to export all the users of an Active Directory to a file. This post is just to keep record of how to do it.

C:\>dsquery group -name "Group Name Here" | dsget group -members > list.txt