PowerAddict.net

powerAddict.NET

by Lou Goban
IT Application Professional at Syntax

Set primary smtp address of Team/M365 group

You will need a Global Admin account to perform this task.
Connect to Exchange Online via PowerShell.

Initially add desired email address to the group:

1
Set-UnifiedGroup -Identity "Group Name" -EmailAddresses:@{Add ="desiredemail@domain.com"}

Then set that email address as primary:

1
Set-UnifiedGroup -Identity "Group Name" -PrimarySmtpAddress "desiredemail@domain.com"

Leave the first comment