Forum Discussion
fstorer
Mar 10, 2020Brass Contributor
Exchange Online - Change primary email address, name and alias of a shared mailbox
Hi All, I have been asked by HR to change the email address, name and alias of a few shared mailboxes that were set up last year. For example, I need to change "jobs-mathssec@domain.com" into "jo...
- Mar 10, 2020
When changing the primary SMTP address, it's usually a good idea to keep the old one as secondary, to avoid unnecessary NDRs. So in the syntax you used, make sure to add it as well, or you can use the -WindowsEmailAddress parameter:
Set-Mailbox user -WindowsEmailAddress newuser@domain.com
which basically changes the primary address to the value you specify, while preserving the old one as secondary. Then do the rest of the attributes as needed.
VasilMichev
Mar 10, 2020MVP
When changing the primary SMTP address, it's usually a good idea to keep the old one as secondary, to avoid unnecessary NDRs. So in the syntax you used, make sure to add it as well, or you can use the -WindowsEmailAddress parameter:
Set-Mailbox user -WindowsEmailAddress newuser@domain.com
which basically changes the primary address to the value you specify, while preserving the old one as secondary. Then do the rest of the attributes as needed.
fstorer
Mar 10, 2020Brass Contributor
Thank you VasilMichev for your help!
I will add that parameter to the script!