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...:)
[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