Export a list of members from an Active Directory group to a text file

Here is a good command line in case you will have need to export members of from security group in Active Directory to a text file for whatever reason it may be on Microsoft Windows Server 2012 R2.

So here is the command line where I want to export all members of ENGINEERING group in Active Directory to a text file:

dsquery group -name “ENGINEERING” | dsget group -members > C:\memberlist.txt

ExportGroup

Once the command completes, you should find a memberlist.txt file under C:\> 🙂

Be the first to comment on "Export a list of members from an Active Directory group to a text file"

Leave a comment

Your email address will not be published.


*


Get Adobe Flash player Plugin by wpburn.com wordpress themes