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