Exchange Distribution Group Members

A task that I am often required to do is to provide information about who is a member of what distribution group in Exchange.

Below is a PowerShell snippet that you must run in the Exchange Management Shell to pull out all the required Distributions groups and the members:

foreach ($group in Get-DistributionGroup) { get-distributiongroupmember $group | ft @{expression={$_.displayname};Label=”$group”} | Out-File c:\temp\DistributionListMembers.txt -append}

 

The output looks something like this:
Info
—-
User1
User2
User3

Technicians
———–
Technician1

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s