Change the Primary SMTP Address of a Microsoft 365 Group
Question details
An administrator needs to change the primary email address of a Microsoft 365 Group.

- Product
- Microsoft Exchange Online
- Device & OS
- not provided
- Scenario
- The administrator wants to update a group's primary SMTP address using PowerShell.
- Observed behavior
- Set-GroupMailbox reports that the group does not exist, although the group appears in the admin portal.
Confirm the group's exact name or current email address and make sure the new address uses a domain accepted by your Microsoft 365 tenant. Sign in with an account that has permission to manage Microsoft 365 Groups in Exchange Online.
Change the Group Address with Set-UnifiedGroup
Use the Exchange Online unified group cmdlets to find the Microsoft 365 Group and update its primary SMTP address.
Open PowerShell and run Connect-ExchangeOnline -UserPrincipalName admin@yourdomain.com, replacing the address with your administrator account. If the cmdlet is unavailable, first run Install-Module ExchangeOnlineManagement -Scope CurrentUser.
Run Get-UnifiedGroup -Identity "Group Name", replacing Group Name with the group's exact name or current email address. Confirm that the returned group is the one you want to change.
Run Get-UnifiedGroup -Identity "Group Name" | Set-UnifiedGroup -PrimarySmtpAddress "alias@newdomain.com", replacing the group identity and address with your values.
Run Get-UnifiedGroup -Identity "alias@newdomain.com" | Format-List DisplayName,PrimarySmtpAddress,EmailAddresses. Check the primary address and any remaining aliases.

Work with Office Files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Office documents. Its format compatibility helps make migration seamless, but Exchange Online group addresses must still be managed through Microsoft tools.

Frequently Asked Questions
Why does Set-GroupMailbox say the group does not exist?
For this Microsoft 365 Group address change, use Get-UnifiedGroup and Set-UnifiedGroup in Exchange Online PowerShell. Check the group's exact name or current email address with Get-UnifiedGroup -Identity before updating it.
How can I connect to Exchange Online PowerShell?
In PowerShell, install the ExchangeOnlineManagement module if needed, then run Connect-ExchangeOnline -UserPrincipalName admin@yourdomain.com and sign in with an appropriately authorized account.
Can I use any domain for the new group address?
The new address must use a domain accepted by your Microsoft 365 tenant, and the address must not already be in use. Check accepted domains in the Exchange admin center before making the change.
How do I check whether the old address is still an alias?
Run Get-UnifiedGroup -Identity "alias@newdomain.com" | Format-List PrimarySmtpAddress,EmailAddresses and inspect the EmailAddresses list for the old address.




