Change Primary SMTP and remove old address on mass

Posted on 2011-05-01
Last Modified: 2012-05-11
I am running Exchange 2007 in a windows 2008 domain.

I have over 1000 users which all have the wrong primary SMTP address in Exchange. I need to change which address is the primary and also delete the incorrect record(s).
This is left over from a migration.

I know I can do some stuff with Email Address Policies, but I do not want this to affect all accounts. I would rather do it in a staged approach to ensure minimal impact.

I.E - export to csv, change it and then re-import.
I cannot find a way or a tool that will allow me to export and then import back the changes based on the fact this is Exchange 2007.

Maybe there's an alternative way to do this rather than import/export. Open to anysuggestions.

Can anyone help me through this?

Question by:naifyboy123
    LVL 9

    Expert Comment

    Did you try looking into powershell?


    Author Comment

    yes - a little bit - to be honest i am not sure what to do. do you have any exmaples of how i can use powershell to accomplish this?
    LVL 9

    Expert Comment


    Complete syntax - gives you all the syntax


    I know there is a way to export all the users as a list also in PS.

    Export all the users that you need to modify.

    Generate the necessary commands (using excel would be the fastest).

    Try a couple of them.

    If everything works out, just dump all the commands into a PS script and run the script.

    LVL 9

    Accepted Solution

    All you should need is

    Set-MailBox -Identity "MailboxIdParameter" -PrimarySmtpAddress "correct_email_address"


    Author Closing Comment

    Thanks for your help....

    Featured Post

    Shouldn't all users have the same email signature?

    You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

    Join & Write a Comment

    "Migrate" an SMTP relay receive connector to a new server using info from an old server.
    Outlook Free & Paid Tools
    This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
    This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

    728 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

    20 Experts available now in Live!

    Get 1:1 Help Now