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.
Elad-ItAsked:
Who is Participating?
 
B HConnect With a Mentor Commented:
i don't know about forwarding an answer to your email address, it should do it automatically if that's the email address you used to sign up, but, i'll go ahead and send it via email too because i'm one question away from the exchange t-shirt :)

see code snippet

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

example:

set-mailbox -emailaddress 'smtp:joe2@domain.com','SMTP:joe2@domain.com' -Identity 'domain/Users/joe'

Open in new window

0
 
B HCommented:
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'
0
 
Elad-ItAuthor Commented:
you forgot about the email policy option and the correct format is -emailaddresses in ploral.
overall it helped a lot. thanks :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.