Set Primary and Aliases for Group Email on Office 365
Go to Powershell and run it as an administrator
Set-ExecutionPolicy RemoteSigned
y
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session //shows command
Get-UnifiedGroup "samplesample@breeneng.com" //select the group you want to change
Get-UnifiedGroup "electrical@breeneng.com" | FL //file list
Get-UnifiedGroup "samplesample@breeneng.com" | Set-UnifiedGroup -PrimarySmtpAddress samplesample@bei-servicesinc.com //use this to change primary and make the primary as an alias
Get-UnifiedGroup "samplesample@breeneng.com" | Set-UnifiedGroup -EmailAddresses @{add="samplesample@bei-servicesinc.com"}
//add alias
References
https://technet.microsoft.com/library/mt238274(v=exchg.160).aspx