Search, list and export all distribution groups email addresses in Exchange

In Exchange Management Shell:
Get-DistributionGroup | select DisplayName -ExpandProperty EmailAddresses | select DisplayName, SmtpAddress | export-csv C:\dg_email_address.csv

Leave a Comment