Home > Microsoft > Exporting distribution list membership to Excel

Exporting distribution list membership to Excel

June 19, 2012

Easy one-liner for exporting members of a distribution list:

Get-DistributionGroupMember -identity "company-dl" Export-Csv C:\MyFile.Csv

you can also use “-not” that gives you a nice csv file

Get-DistributionGroupMember -identity "company-dl" Export-Csv C:\MyFile.Csv -not

%d bloggers like this: