Export list of email addresses to CSV from Exchange 2010

Posted on 2011-10-16
Last Modified: 2012-06-27
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.
Question by:Mayogroup
    LVL 12

    Accepted 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

    Author Comment

    Thanks, that lists all the email addresses. The export trigger fails however.
    Msg says it is not a recognisable cmdlet

    Author Comment


    I needed to put a pipe before Export ( eg | export)

    Author Comment

    How do I change it to export only a certain domain name?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Promote certifications in your email signature

    Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

    Suggested Solutions

    "Migrate" an SMTP relay receive connector to a new server using info from an old server.
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now