Link to home
Start Free TrialLog in
Avatar of naifyboy123
naifyboy123Flag for Afghanistan

asked on

Change Primary SMTP and remove old address on mass

Hi
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?

Thanks
Avatar of sshah254
sshah254

Did you try looking into powershell?

Ss
Avatar of naifyboy123

ASKER

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?
Set-Mailbox

Complete syntax
http://technet.microsoft.com/en-us/library/bb123981(EXCHG.80).aspx - gives you all the syntax

Examples
http://www.msexchange.org/articles-tutorials/exchange-server-2007/management-administration/user-administration-exchange-2007-powershell-cmdlets.html 

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.

Ss
ASKER CERTIFIED SOLUTION
Avatar of sshah254
sshah254

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for your help....