Get The Members Of An Exchange 2007 Distribution Group…

Many a times we are faced with the task of getting all the members in a distribution group, especially in a large group. It is very easy with Powershell. Run the following command,

Get-DistributionGroupMember –identity “group name”

In order to select the properties we need, pipe the command to format-table with the necessary values.

Get-DistributionGroupMember –identity “group name” | ft name, primarysmtpaddress

1

As usual, we can export the output to a txt or csv file.

Get-DistributionGroupMember –identity “group name” | ft name, primarysmtpaddress | Export-CSV c:members.csv

11 thoughts on “Get The Members Of An Exchange 2007 Distribution Group…”

  1. Easiest will be to install PowerGUI, a free GUI to manage AD, Exchange, VMWare etc and run Get-QADGroupMember "group name" -Indirect from the script editor or load the quest snapin in powershell and run it from there.

    http://www.powergui.org

    Reply
  2. Hey !

    I have a distribution list which contains other distribution groups. Is there any way to list all the members who is member of the main group?

    example:
    Got a group called A, and this group is has members B and C. B and C contains users.
    I need to get a list of alle the members who indirectly is member of the main group A.

    Thanks.

    Reply

Leave a Comment