Export User List of AD Security Group

March 05, 2015 0 Comments windows, active-directory

If you need to get a list of all members in an AD Security Group, open up powershell and try the following commands from a DC:

  1. This command will list all the members and the OU structure they below to:
dsquery group -name "GroupName" | dsget group -members
  1. Add this to the command to only get the display name of the users:
dsquery group -name "GroupName" | dsget group -members | dsget user -display

Update: I have posted more recently with updated/additional commands: https://thenetworkstack.com/active-directory-powershell/