Office 365 Groups change Primary SMTP Address

Several settings can only be changed via PowerShell.

One of this in Office 365 Unified Groups is the SMTP Primary Address.

First you run PowerShell in Admin Mode and login to Exchange Online:
Set-ExecutionPolicy RemoteSigned
$credential = Get-Credential
Connect-MsolService -Credential $credential

loading the Exchange Online Module:

$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "" -Credential $credential -Authentication "Basic" -AllowRedirection
Import-PSSession $exchangeSession -DisableNameChecking

Next listing all your Office 365 Unified Groups:

Get-UnifiedGroup | fl name,alias,*smtp*

Once you identified the group, you change the SMTP:

Set-UnifiedGroup -Identity sfbusergroup-cologne -PrimarySmtpAddress

Further more, you can change the all other attributes.


Popular posts from this blog

Skype for Business, Lync and Exchange Web Services (EWS) and different DNS Domains- Exchange crawling e.g. for presence

Lync 2013 Client, Desktop Sharing shows blank screen (Windows 7, Windows 8, Windows 8.1)

File Share Perfomance for Skype for Business (slow conference join, slow address book)