Forum Discussion
Hasan Siddiqui
Nov 29, 2017Tin Contributor
Change O365 group email address using powershell
I am trying to change primarty SMTP of Office365 group but getting error:
We failed to update the unified group. Please try again later. + CategoryInfo : NotSpecified: (:) [Set-UnifiedGroup],...
Daniel Simpson
Jun 06, 2018Copper Contributor
Using Set-Group seems to do the trick:
Set-Group "GroupName" -WindowsEmailAddress "NewPrimaryEmail@domain.com"
Panagiotis Kagias
Jun 08, 2018Copper Contributor
Using Set-Group seems to do the trick:
Set-Group "GroupName" -WindowsEmailAddress "NewPrimaryEmail@domain.com"
This one worked for me. Many thanks !
- Dan K.Jun 08, 2018Copper Contributor
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?