• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 887
  • Last Modified:

Export list of email addresses to CSV from Exchange 2010

I would like to export a list of all of our email addresses to CSV. I would like to export to each of the domain name types.
  • 3
1 Solution
If you want only SMTP address then use this

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

Add Export-Csv <csv file> to export.

Otherwise use this tool
MayogroupAuthor Commented:
Thanks, that lists all the email addresses. The export trigger fails however.
Msg says it is not a recognisable cmdlet
MayogroupAuthor Commented:

I needed to put a pipe before Export ( eg | export)
MayogroupAuthor Commented:
How do I change it to export only a certain domain name?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now