Export all Exchange 2010 email addresses to a CSV file

Using Exchange Management Shell:

Exchange management shell will export all the Full Name and Email Addresses and save them to C:\customer.csv

 

GET-MAILBOX -RESULTSIZE UNLIMITED |SELECT-OBJECT DISPLAYNAME,SERVERNAME,PRIMARYSMTPADDRESS, @{NAME=“EMAILADDRESSES”;EXPRESSION={$_.EMAILADDRESSES |WHERE-OBJECT {$_.PREFIXSTRING -CEQ “SMTP”} | FOREACH-OBJECT {$_.SMTPADDRESS}}} | EXPORT-CSV C:\CUSTOMER.CSV -NOTYPEINFORMATION

Tags:

Comments are closed

Latest Comments

No comments to show.