Wednesday, August 1, 2012

Command to Export Mailboxes With Multiple SMTP Adress In Exchange Server 2007.

Open Exchange Server 2007 Powershell Command Prompt and type the following command:-
[PS] H:\>Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress, @{Name="EmailAddresses";Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq "smtp"} | ForEach-Object {$_.SmtpAddress}}}| Export-csv c:\filename.csv

Go to your Exchange Server C Drive and open the CSV file that you have exported. Its done!!! Cheers...:)

No comments:

Post a Comment