Forum Discussion
Hasan Siddiqui
Nov 30, 2017Copper 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],...
Jason Paul Viola
Jun 05, 2018Copper Contributor
Hi MOONSO KO,
You can try the following cmdlet to update the primary SMTP address of the O365 group.
Set-UnifiedGroup -Identity old@mydomain.com -EmailAddress @{remove=”SMTP:old@mydomain.com”;add=”SMTP:new@mydomain.com”,”smtp:old@mydomain.com”}
This should update the primary SMTP address to the new@mydomain.com and set the old@mydomain.com to a secondary SMTP address.
You can try the following cmdlet to update the primary SMTP address of the O365 group.
Set-UnifiedGroup -Identity old@mydomain.com -EmailAddress @{remove=”SMTP:old@mydomain.com”;add=”SMTP:new@mydomain.com”,”smtp:old@mydomain.com”}
This should update the primary SMTP address to the new@mydomain.com and set the old@mydomain.com to a secondary SMTP address.
Rob Hardman
Jun 05, 2018Iron Contributor
Hi Jason,
I'm in the same position as Moonso Ko. In my case, attempting your workaround did alter the email addresses, but not the primary SMTP address for the group, and returned the error;
There is no primary SMTP address.
+ CategoryInfo : NotSpecified: (XXXXXXXX:ADObjectId) [Set-UnifiedGroup], DataValidationExcept
ion
+ FullyQualifiedErrorId : [Server=XXXXXX,RequestId=e54f49cd-6dd5-4309-9c96-a415efc1ced5,TimeStamp=6/5/2018
8:17:00 PM] [FailureCategory=Cmdlet-DataValidationException] 4FC61324,Microsoft.Exchange.Management.RecipientTasks
.SetUnifiedGroup
+ PSComputerName : outlook.office365.com
HTH,
Rob