Monday, May 19, 2014

Exchange 2010 - Exporting a list of primary SMTP addresses to CSV

Within EMC copy/paste:

Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} | Export-CSV c:\smtp.csv -NoTypeInformation

Thanks to Matt's Blog http://blog.mattsampson.net/index.php/export-list-all-your-exchange?blog=1

No comments:

Post a Comment