Exchange Connection Problems

Change the Primary SMTP Address of a Microsoft 365 Group

Anum MushtaqAnum Mushtaq Nov 27, 2026 868 views

Question details

An administrator needs to change the primary email address of a Microsoft 365 Group.

Change the Primary SMTP 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.
Before you start

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.

Solution 1Recommended

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.

1
Connect to Exchange Online

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.

2
Find the group

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.

3
Set the primary address

Run Get-UnifiedGroup -Identity "Group Name" | Set-UnifiedGroup -PrimarySmtpAddress "alias@newdomain.com", replacing the group identity and address with your values.

4
Verify the change

Run Get-UnifiedGroup -Identity "alias@newdomain.com" | Format-List DisplayName,PrimarySmtpAddress,EmailAddresses. Check the primary address and any remaining aliases.

Change the Group Address with Set-UnifiedGroup
Check the new domain and permissions: If the command fails, confirm that the new domain is accepted by the tenant, the address is not already in use, and your account has the required Exchange Online permissions.
Free Microsoft Office alternative

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.

Use a familiar interface to work with documents, spreadsheets, and presentationsOpen and edit Microsoft Office formats, including DOCX, XLSX, and PPTXUse a free, lightweight suite alongside your Microsoft 365 administration tools
microsoft office alternative - wps office

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.