Today, I needed to export a list of all of our contacts’ email addresses. The easiest way to do this was with PowerShell from the Exchange Management Shell:
Get-MailContact | Select-Object -Property PrimarySmtpAddress | Out-File c:tempcontacts.txt
Some more reading: