Email Address modification
I am in need of a script to change all email addresses of a list of users in a CSV file. I don't want to delete them just modify all of them. We can't just update the recipient policy since we are migrating users in groups and can't have the email addresses change for non-migrated users.
July 28th, 2010 12:44am

Hi, The following scripts show how to modify the primary SMTP address for the users. Please copy the scripts to Notepad and save the file as xx.ps1. Then open Exchange Management shell, type PATH:\xx.ps1 -------------------------------- $Allusers=get-mailbox foreach ($user in $allusers) { $alias=$user.alias set-mailbox -identity $alias -PrimarySmtpAddress $ -EmailAddressPolicyEnable $false } ----------------------------------------------- After running the scripts above, the original SMTP address will not be removed. Exchange just generates a new SMTP address for the users and set it to Primary SMTP address. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Thanks
Free Windows Admin Tool Kit Click here and download it now
July 29th, 2010 7:47am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics