Get AD Group and Members Of

Get AD Group and Members Of

Find members of an Active Directory Group

In order to retrieve a group and all of its members run the following in PowerShell. You will need the AD PowerShell module which is installed with RSAT.

Get-ADGroup -Filter 'groupcategory -eq "distribution"' |
#You can filter -eq distribution or security or *

          [email protected]{GroupName=$_.Name;Member=''}

          $_ | Get-ADGroupMember -ea 0 -recurs |



                    New-Object psObject -Property $hash


          } | 

     sort groupname,member | export-csv c:\group.csv

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: