UPDATE: Mar 26, 2020 for Exchange ONLINE instructions we have How To Export All Email Addresses and Alias to A File From Office365 Exchange Online HERE.
If you have ever been asked who has a particular email alias on an Exchange server, you know you in for trouble because the answer is not readily apparent in the Exchange Management Console.
The easiest way I know to find alias names in Exchange is to use the PowerShell Script below to export all the alias’ to a CSV:
Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,PrimarySmtpAddress, @{Name=”EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} | Export-CSV c:\exportsmtp.csv -NoTypeInformation
A special thanks to Patrick Burgman from www.SmartTowns.ca for digging out this script. Shabbat Shalom Patrick.
Enjoy!
This website uses cookies.
View Comments
Does Get-Recipient not work for you?
That is an option but I found this better for my purpose. Thanks