script to add another email address for the existing users

Hello,

I am looking for a Power Shell script to add new SMTP address 200 users and do not want to touch existing SMTP and X.500 addresses. am using Exchange server 2010 sp1

Can someone help ?

i tried with the below script executing on exchange PS, i didnt receive any error and there is no result also.. 

Import-Csv c:\data.csv | Foreach{
$maileg = Get-Mailbox -Identity $_.Name
$maileg.EmailAddresses += $_.emailaddress
}

September 25th, 2013 11:57pm

Hi,

Use this script :

Import-Csv c:\data.csv | Foreach{set-mailbox -identity $_.Alias -EmailAddresses @{add=$_.emailaddress}}

 Make sure  you have  a data.csv file with  at least two header  like below :

Alias,emailaddress

user1,user1@newaddress.com

.............

Free Windows Admin Tool Kit Click here and download it now
September 26th, 2013 12:37am

Dear Noorain, 

thank you so much. its worked perfectly...

have a nice day :)

September 26th, 2013 2:12am

Thank you very much Noorain.
Free Windows Admin Tool Kit Click here and download it now
January 13th, 2014 10:44am

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

Other recent topics Other recent topics