Export AD Group Members to CSV

From Wiki.CoreyBlair.US
Jump to navigation Jump to search
  1. Create the following directory (or use the directory of your choice)
c:\ADGroupQuery
  1. Open Powershell
  2. Enter the following command changing "Name of Group" to the name of whatever group you are trying to populate
Get-ADGroupMember -identity “Name of Group” | select name | Export-csv -path C:\ADGroupQuery\Groupmembers.csv -NoTypeInformation[1]

References

  1. Author: BC, [1]