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

https://support.office.com/en-us/article/Managing-Office-365-and-Exchange-Online-with-Windows-PowerShell-06a743bb-ceb6-49a9-a61d-db4ffdf54fa6?ui=en-US&rs=en-US&ad=US&fromAR=1







Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.