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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

B HCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.