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.
raphi_1303
Mar 31, 2022Copper Contributor
VasilMichev Hi, I currently have the same task but when I run the script, I get the error message: "Set-Mailbox: A parameter cannot be found that matches parameter name 'WindowsEmailAddress'."
I also tried -EmailAddresses but still not recognizing...This is the script:
Connect-ExchangeOnline
Set-Mailbox random.dude -WindowsEmailAddress Email address removedCan you please tell me if I miss a module or anything?
I would really appreciate! 🙂
VasilMichev
Apr 01, 2022MVP
Don't use the Preview module, or at least make sure to read the release notes before doing so 🙂
In other words, you need to connect via:
Connect-ExchangeOnline -UseRPSSession
In other words, you need to connect via:
Connect-ExchangeOnline -UseRPSSession