Forum Discussion
Change O365 group email address using powershell
Using Set-Group seems to do the trick:
Set-Group "GroupName" -WindowsEmailAddress "NewPrimaryEmail@domain.com"
This one worked for me. Many thanks !
Just looking a little deeper, using Set-Group doesn't quite get it right when updating the primary SMTP domain. It seems to only update the exchange properties, and not AzureAD.
After using Set-Group, I waited awhile to ensure time for any propagation, and then checked the group objects in both EOL and AAD. While Exchange properties looked good, the AAD properties looked as if nothing had changed.
So, in the office admin portal list and get-msolgroup my test group is still showing the old domain, while the exchange properties and GAL correctly show the new domain.
Should we expect trouble down the road with a discrepancy like this?