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

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
0
naifyboy123
Asked:
naifyboy123
  • 3
  • 2
1 Solution
 
sshah254Commented:
Did you try looking into powershell?

Ss
0
 
naifyboy123Author Commented:
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?
0
 
sshah254Commented:
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
0
 
sshah254Commented:
All you should need is

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

Ss
0
 
naifyboy123Author Commented:
Thanks for your help....
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

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