Need Commands To Export Active Directory Group Members.

Asked By 0 points N/A Posted on -
qa-featured

Hello all,

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.

SHARE
Answered By 230 points N/A #112624

Need Commands To Export Active Directory Group Members.

qa-featured

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.

Related Questions