N/APosted on - 07/26/2016
I want to Export the Group Members of the Active Directory to a Text File. I don’t know about the command that I have to use to perform this task. Someone, please tell me the commands to Export Active Directory Group Members.
Need Commands To Export Active Directory Group Members.
You can use two methods to Export the Active Directory Group Members to a Text File. “Net Group” Command and the “DS Query” can do the job.
The command to Export the Group Members using the Net Group is: –
“Net Group Name of the Group /Domain > Output File’s Name.”
If you use the DS Query Command, then the command line will be: –
“Dsquery group-name Name of the Group | Dsget group-member > Output File’s Name.”
You can see the screenshot for the Commands, where “Group Name” is the name of the Group, and “Memberlist.txt” is the name of the output File.