Export list of all Exchange email addresses and aliases
10 Replies
Issue: You need to get a list of all the email addresses (aliases) in your Exchange environment.
Method 1: Export list of all email addresses to a .CSV file using Exchange Management Shell (EMS):
Get-Mailbox -ResultSize Unlimited -OrganizationalUnit "OU=Phoenix Users,OU=Phoenix,DC=CONTOSO,DC=COM" |Select-Object DisplayName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} | Export-CSV Read more [...]