I am Dale Hayter, a Microsoft and VMware certified Technical Consultant.

My blog has been built up over the years from my experience of working on an IT helpdesk and also from being out on-site.

Export Users Email Addresses in a Distribution Group in Exchange with Powershell

You might have a need to export all the email addresses from a distribution group in Exchange. You can do this easily in Powershell using the command below :-


Get-DistributionGroup "Distribution Group Name" | Get-DistributionGroupMember | select DisplayName,Title,PrimarySMTPAddress

Then if you want a CSV of this

Get-DistributionGroup "Distribution Group Name" | Get-DistributionGroupMember | select DisplayName,Title,PrimarySMTPAddress | Export-CSV c:\temp\filename.csv