Search, list and export all mail contacts email addresses in Exchange

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

Leave a Comment