Update group email in Microsoft Teams

How do update a group mailbox for an established group in Microsoft teams? Preferably without using PowerShell but will do it if necessary. Any help would be appreciated. Thanks!
Urie GuerrierContracterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alan CoxSr. Architect | ConsultingCommented:
Can do in Powershell ONLY

1. Connect to Exchange Online via Power shell using Global Administrator Credentials and run the below commends. First two command run separately.

Set-ExecutionPolicy Unrestricted

Start-service winrm
Connect-MsolService -Credential $UserCredential
Import-module MSOnline
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session


2.  Run the below command to add required SMTP address as an alias.

  Set-UnifiedGroup -Identity "X" -EmailAddresses: @{Add ="Y"}

here X is the Display Name of Office 365 group and Y is the required Email ID.

Set-UnifiedGroup -Identity "Groupname" -EmailAddresses: @{Add ="NewEmail@domain.com"}


3. Promote alias as a primary SMTP address,

Set-UnifiedGroup -Identity "Groupname" -PrimarySmtpAddress "NewEmail@domain.com"


4. If not required, you can remove first ID using below command.

Set-UnifiedGroup -Identity "GroupName" -EmailAddresses: @{Remove="OLDADDRESS@domain.com"}

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.