Link to home
Start Free TrialLog in
Avatar of Elad-It
Elad-ItFlag for United States of America

asked on

Add Email Address in Exchange 2010 Powershell

Hi,
we use Exchange 2010 powershell.
i would like to know how can i add an email address to an existing account via powershell.
please send your answer to meir.georgi@rsa.com.
thank you.
ASKER CERTIFIED SOLUTION
Avatar of Bryon H
Bryon H
Flag of United States of America image

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
CORRECTION:  there was a typo in my code, this is correct:

set-mailbox -emailaddress 'smtp:current@domain.com','SMTP:newemail@domain.com' -Identity 'domain/OU/userid'

example:
set-mailbox -emailaddress 'smtp:joe@domain.com','SMTP:joe2@domain.com' -Identity 'domain/Users/joe'
Avatar of Elad-It

ASKER

you forgot about the email policy option and the correct format is -emailaddresses in ploral.
overall it helped a lot. thanks :)