SOLVED

Is there a way to change O365 group email address using powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-49872%22%20slang%3D%22en-US%22%3EIs%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-49872%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20organization%20wants%20to%20change%20email%20address%20of%20O365%20group.%20%26nbsp%3BI%20am%20not%20able%20to%20find%20any%20power%20shell%20to%20change%20email%20address%20of%20already%20created%20O365%20group.%20%26nbsp%3B%20I%20tried%20below%20command%20but%20it%20is%20not%20working.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%3CSPAN%3ESet-unifiedgroup%20-identity%26nbsp%3B%20testo365%20-primarysmtpaddress%20%3CA%20title%3D%22test123o365%22%20href%3D%22mailto%3Atest123O365%40atco.onmicrosoft.com%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Etest123O365%3C%2FA%3E%40qqq.onmicrosoft.com%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%3CSPAN%3ECan%20someone%20please%20provide%20your%26nbsp%3Bthoughts%20on%20this.%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-49872%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-328400%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-328400%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20this%20worked%20perfectly.%26nbsp%3B%20I%20did%20have%20to%20wait%20a%20couple%20of%20minutes%20between%20commands%20though%20for%20them%20to%20be%20fully%20actioned%20on%20o365%2C%20running%20them%20immediately%20gave%20errors.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-315500%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-315500%22%20slang%3D%22en-US%22%3E%3CP%3EVery%20thank%20you!%20You%20save%20me!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-290478%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-290478%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20There%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20there%20is%20a%20way%20that%20you%20can%20make%20that%20change.%20Please%20take%20a%20look%20at%20the%20PowerShell%20script%20below.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPowerShell%20ISE%20is%20strongly%20recommended.%20(Copy%20Paste%20as%20it%20is%20and%20Run)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Ecls%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ESet-ExecutionPolicy%20RemoteSigned%20-Scope%20CurrentUser%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%24UserCredential%20%3D%20Get-Credential%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%24Session%20%3D%20New-PSSession%20-ConfigurationName%20Microsoft.Exchange%20-ConnectionUri%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%22%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%3C%2FA%3E%3CSPAN%3E%26nbsp%3B-Credential%20%24UserCredential%20-Authentication%20Basic%20-AllowRedirection%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EImport-PSSession%20%24Session%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EWrite-Output%20%22%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EWrite-host%20%22%3D%3D%3D%3D%3D%3D%3D%3D%20CONFIGURING%20O365%20GROUP%20EMAIL%20ADDRESS%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%22%20-foreground%20%22yellow%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EWrite-Output%20%22%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%24oldEmail%3Dread-host%20%22Which%20O365%20Group%20email%20address%20do%20you%20want%20to%20edit%3F%20Ex%3A%20group%40domain.onmicrosoft.com%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%24newEmail%3Dread-host%20%22Please%20enter%20the%20new%20email%20address%20for%20%24oldEmail%20Ex%3A%20group%40domain.com%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ESet-Group%20-Identity%20%24oldEmail%20-WindowsEmailAddress%20%24newEmail%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EWrite-Output%20%22%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EWrite-host%20%22%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%20COMPLETED%20SUCCESSFULLY%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%22%20-foreground%20%22green%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EWrite-Output%20%22%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%22%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EGet-Group%20-Identity%20%24newEmail%20%7C%20select%20display*%2Cwindows*%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EOnce%20you%20run%20this%20scrript%20you%20will%20be%20asked%20to%20import%20to%20the%20module%20please%20choose%20yes%20to%20all%20to%20allow%20the%20necessary%20modules%20and%20then%20log%20in.%20After%20your%20log%20in%20you%20will%20be%20asked%20to%20provide%20the%20current%20email%20of%20the%20group%20and%20after%20that%20you%20will%20be%20asked%20to%20type%20the%20new%20email.%20Within%202%20minutes%20the%20change%20will%20apply%20and%20you%20can%20see%20it%20on%20your%20EAC%20and%20please%20close%20your%20browser%20and%20re-open%20it%20and%20sign%20into%20Portal.office%2Ccom%20and%20the%20changes%20will%20appear%20under%20groups%20on%20Admin%20portal%20as%20well.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-251188%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-251188%22%20slang%3D%22en-US%22%3EOld%20thread%20but%20I%20had%20this%20issue%20and%20couldn't%20see%20the%20answer%20here.%3CBR%20%2F%3EThe%20solution%20is%3A%20you%20need%20to%20use%20lowercase%20%22smtp%22%20rather%20than%20%22SMTP%22.%3CBR%20%2F%3EUppercase%20%22SMTP%22%20indicates%20the%20primary%20email%20address.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-239958%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-239958%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Yahkoob!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20your%20steps%20worked%20for%20except%20the%20last%20one%20to%20remove%20the%20email%20address.%20For%20some%20reason%20I%20am%20not%20able%20to%20remove%20the%20old%20email%20address%20associated%20with%20the%20group.%20I%20have%20attached%20the%20command%20I%20am%20using%20and%20message%20that%20I%20am%20getting.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPS%20C%3A%5CWINDOWS%5Csystem32%26gt%3B%20Set-UnifiedGroup%20-Identity%20%22xxxxxx%20-%20Technical%22%20-EmailAddresses%3A%20%40%7BRemove%3D%22xx%40xxx.onmicrosoft.com%22%7D%3CBR%20%2F%3EWARNING%3A%20The%20command%20completed%20successfully%20but%20no%20settings%20of%20'xxx_23d3be76e5'%20have%20been%20modified.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20help.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-218345%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-218345%22%20slang%3D%22en-US%22%3EHi%20Luciano%2C%3CBR%20%2F%3E%3CBR%20%2F%3ETake%20this%20script%20%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2Foffice%2FBulk-Add-SMTP-Addresses-to-e3d28842%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgallery.technet.microsoft.com%2Foffice%2FBulk-Add-SMTP-Addresses-to-e3d28842%3C%2FA%3E%3CBR%20%2F%3EChange%20the%20%24Mailboxes%20line%20from%20%40(Get-Mailbox%20...)%20to%20%40(Get-UnifiedGroup...)%3CBR%20%2F%3EAlso%20change%20at%20the%20end%20to%20Set-UnifiedGroup%20-Identity%20%24Mailbox.Alias%20...%3CBR%20%2F%3EThen%20run%20it%20like%20.%5CAdd-SMTPAddresses.ps1%20-Domain%20whatever.com%20-MakePrimary%20-Commit%3CBR%20%2F%3E%3CBR%20%2F%3ETested%20today%20and%20it%20works.%20Enjoy!%20%5E_%5E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-206209%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206209%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Yahkoob%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20asked%20last%20year%20something%20like%20that%20and%20you%20answer%20me%20but%20what%20I%20really%20need%20is%20to%20change%20all%20O365-Groups%20which%20are%20have%20been%20created%20in%20the%20past%20(not%20my%20past)%20with%20the%20wrong%20email%20addresses%20something%20like%20this%26nbsp%3B%40abc.onmicrosoft.com%2C%20how%20could%20be%20posible%20to%20use%20your%20script%20but%20for%20all%20O365%20and%20not%20only%20one%20or%20two.%20Thank%20you%20so%20much.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ELuciano%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-206208%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206208%22%20slang%3D%22en-US%22%3E%3CP%3EWorked%20like%20a%20charm%2C%20Sweet%3C%2FP%3E%3CP%3EThx%20ever%20so%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-206059%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206059%22%20slang%3D%22en-US%22%3EHi%20Susan%2C%3CBR%20%2F%3EYes%20It%20is%20possible%2C%20you%20can%20add%20new%20email%20ID%20and%20you%20can%20promote%20your%20new%20Email%20ID%20as%20an%20SMTP%20and%20you%20can%20remove%20your%20Old%20Email%20ID.%20But%20performing%20this%20steps%2C%20you%20need%20a%20global%20Administrator%20access.%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20follow%20below%20Steps%20to%20change%20Office%20365%20group%20Email%20address%3A-%3CBR%20%2F%3E%3CBR%20%2F%3ECurrent%20SMTP%20address%20%3A-%20WORD%40mail.com%3CBR%20%2F%3ERequired%20SMTP%20address%20%3A-%20word%40mail.com%3CBR%20%2F%3E%3CBR%20%2F%3EFollow%20the%20below%20steps%20in%20power%20shell%20using%20Global%20Administrator%20Credentials%2C%3CBR%20%2F%3E%3CBR%20%2F%3E1.%20Connect%20to%20Exchange%20Online%20via%20Power%20shell%20using%20Global%20Administrator%20Credentials%20and%20run%20the%20below%20commends.%20First%20two%20command%20run%20separately.%3CBR%20%2F%3E%3CBR%20%2F%3ESet-ExecutionPolicy%20Unrestricted%3CBR%20%2F%3E%3CBR%20%2F%3EStart-service%20winrm%3CBR%20%2F%3E%3CBR%20%2F%3EImport-module%20MSOnline%3CBR%20%2F%3E%24UserCredential%20%3D%20Get-Credential%3CBR%20%2F%3E%24Session%20%3D%20New-PSSession%20-ConfigurationName%20Microsoft.Exchange%20-ConnectionUri%20%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%3C%2FA%3E%20-Credential%20%24UserCredential%20-Authentication%20Basic%20-AllowRedirection%3CBR%20%2F%3EImport-PSSession%20%24Session%3CBR%20%2F%3EConnect-MsolService%20-Credential%20%24UserCredential%3CBR%20%2F%3E%3CBR%20%2F%3E2.%20Run%20the%20below%20command%20to%20add%20required%20SMTP%20address%20as%20an%20alias.%3CBR%20%2F%3ESet-UnifiedGroup%20-Identity%20%22X%22%20-EmailAddresses%3A%20%40%7BAdd%20%3D%22Y%22%7D%3CBR%20%2F%3Ehere%20X%20is%20the%20Display%20Name%20of%20Office%20365%20group%20and%20Y%20is%20the%20required%20Email%20ID.%3CBR%20%2F%3EEg%3A-%20Set-UnifiedGroup%20-Identity%20%22Test%20o365Group%22%20-EmailAddresses%3A%20%40%7BAdd%20%3D%22WORD1%40mail.com%22%7D%3CBR%20%2F%3E%3CBR%20%2F%3E3.%20Promote%20alias%20as%20a%20primary%20SMTP%20address%2C%3CBR%20%2F%3ESet-UnifiedGroup%20-Identity%20%22Test%20O365Group%22%20-PrimarySmtpAddress%20%22WORD1%40mail.com%22%3CBR%20%2F%3E%3CBR%20%2F%3E4.%20Remove%20first%20ID%20using%20below%20command.%3CBR%20%2F%3ESet-UnifiedGroup%20-Identity%20%22Test%20o365Group%22%20-EmailAddresses%3A%20%40%7BRemove%3D%22WORD%40mail.com%22%7D%3CBR%20%2F%3E%3CBR%20%2F%3E5.%20Again%20Add%20required%20Email%20Address%3CBR%20%2F%3EEg%3A-%20Set-UnifiedGroup%20-Identity%20%22Test%20o365Group%22%20-EmailAddresses%3A%20%40%7BAdd%20%3D%22word%40mail.com%22%7D%3CBR%20%2F%3E%3CBR%20%2F%3E6.%20Promote%20alias%20as%20a%20primary%20SMTP%20address%2C%3CBR%20%2F%3ESet-UnifiedGroup%20-Identity%20%22Test%20O365Group%22%20-PrimarySmtpAddress%20%22word%40mail.com%22%3CBR%20%2F%3E%3CBR%20%2F%3E7.%20Remove%20first%20ID%20using%20below%20command.%3CBR%20%2F%3ESet-UnifiedGroup%20-Identity%20%22Test%20o365Group%22%20-EmailAddresses%3A%20%40%7BRemove%3D%22WORD1%40mail.com%22%7D%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20note%2C%20For%20updating%20the%20Office%20365%20group%20SMTP%20address%20required%20Global%20Administrator%20access.Hope%20this%20will%20help%20you%20and%20let%20me%20know%20if%20you%20are%20facing%20any%20issue%20on%20this.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20and%20Regards%2C%3CBR%20%2F%3EYahkoob%20Ayappally%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-206047%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206047%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Yahkoob%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20this.%20And%20I%20figured%20this%20is%20why%20it%20doesn't%20change.%20However%20we%20would%20like%20it%20to%20display%20in%20lowercase%20as%20it's%20our%20company%20name%20and%20it's%20officially%20spelled%20lowercase.%20If%20you%20have%20a%20solution%20great.%20If%20not%20we%20have%20to%20live%20with%20it%2C%20like%20with%20many%20other%20%22imperfections%22%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-206035%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-206035%22%20slang%3D%22en-US%22%3EHi%20Susan%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20for%20your%20update!!!%3CBR%20%2F%3E%3CBR%20%2F%3EI%20think%20you%20don't%20worry%20about%20the%20capital%20and%20small%20letters%2C%20its%20case%20sensitive%20and%20you%20can%20ignore%20it.%20I%20hope%20you%20can%20change%20the%20capital%20to%20small%20letters%20because%20mail%20system%20is%20considered%20as%20a%20both%20are%20same%20email%20address.%20You%20can%20spread%20your%20group%20email%20ID%20as%20usual%20with%20word%40mail.com%20and%20you%20will%20receive%20all%20emails.%3CBR%20%2F%3E%3CBR%20%2F%3ELet%20me%20know%20if%20you%20have%20a%20more%20query.%3CBR%20%2F%3ERegards%2C%3CBR%20%2F%3EYahkoob%20A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-205604%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-205604%22%20slang%3D%22en-US%22%3E%3CP%3Eworks%20like%20a%20charm%20so%20Thx%2C%20one%20thing%20it%20doesn't%20seem%20to%20do%20I%20want%20to%20change%20from%20Capitals%20to%20lowercase%3C%2FP%3E%3CP%3EWORD%40mail.com%20to%20word%40mail.com%3C%2FP%3E%3CP%3Eany%20advice%2Fsuggestions%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-170204%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-170204%22%20slang%3D%22en-US%22%3E%3CP%3Ecool%20always%20welcome%20Howard%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-169194%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-169194%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20share!%20works%20for%20me%20amazingly!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-150518%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-150518%22%20slang%3D%22en-US%22%3EWorked%20for%20me%2C%20thanks!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-141157%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-141157%22%20slang%3D%22en-US%22%3E%3CP%3Egood%20to%20know%20that%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-141156%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-141156%22%20slang%3D%22en-US%22%3EThank%20you%20for%20the%20post.%20This%20worked%20like%20a%20charm.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-137474%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-137474%22%20slang%3D%22en-US%22%3EThis%20works%20good%20in%20principle%2C%20using%20Set-UnifiedGroup%20to%20change%20primary%20SMTP%20address%2C%20and%20adding%20and%20removing%20addresses%20from%20the%20EmailAddresses%2C%20like%20in%20Yahkoob's%20examples.%20The%20unfortunate%20thing%20though%2C%20if%20you%20try%20to%20remove%20an%20e-mail%20address%2C%20it%20will%20not%20be%20removed%20from%20the%20Azure%20AD%20Group%2FExchange%20group%20object.%20You%20will%20still%20see%20the%20e-mail%20address%20you%20tried%20to%20remove%20as%20one%20of%20the%20aliases%20for%20the%20group%20if%20you%20look%20at%20the%20group%20in%20the%20Office%20365%20Admin%20portal%2C%20or%20if%20you%20look%20at%20the%20proxy%20addresses%20using%20Get-AzureADGroup%2C%20Get-AzureADMSGroup%20or%20Get-MSOLGroup.%20There%20is%20currently%20no%20way%20you%20can%20remove%20an%20e-mail%20address%20from%20these%20groups%2C%20so%20there%20is%20an%20discrepancy%20between%20using%20Set-UnifiedGroup%20and%20the%20group%20object%20represented%20in%20Exchange%20Online%20or%20Azure%20AD.%20Unfortunately%2C%20recently%20I%20discovered%20that%20this%20proxy%20addresses%20also%20is%20written%20back%20to%20local%20AD%20if%20you%20configure%20Azure%20AD%20Connect%20Group%20Writeback.%20This%20could%20possibly%20lead%20to%20conflict%20with%20local%20Exchange%20recipients%20using%20the%20same%20emailaddress.%20There%20really%20should%20be%20a%20way%20to%20remove%20emailaddresses%20from%20Office%20365%20Groups%20all%20the%20way%20to%20prevent%20conflicts.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-134486%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-134486%22%20slang%3D%22en-US%22%3E%3CP%3EHai%20Luciano%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGood%20Day.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYes%20It%20is%20possible%2C%20you%20can%20add%20new%20email%20ID%20and%20you%20can%20promote%20your%20new%20Email%20ID%20as%20an%20SMTP%20and%20you%20can%20remove%20your%20Old%20Email%20ID.%20But%20performing%20this%20steps%2C%20you%20need%20a%20global%20Administrator%20access.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20follow%20below%20Steps%20to%20change%20Office%20365%20group%20Email%20address%3A-%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECurrent%20SMTP%20address%20%3A-%20test.o365group%40abcd.onmicrosoft.com%3C%2FP%3E%0A%3CP%3ERequired%20SMTP%20address%20%3A-%20test.o365group%40abcd.com%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFollow%20the%20below%20steps%20in%20power%20shell%20using%20Global%20Administrator%20Credentials%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Connect%20to%20Exchange%20Online%20via%20Power%20shell%26nbsp%3B%3CSPAN%3Eusing%20Global%20Administrator%20Credentials%20and%20run%20the%20below%20commends.%20First%20two%20command%20run%20separately.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESet-ExecutionPolicy%20Unrestricted%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EStart-service%20winrm%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EImport-module%20MSOnline%3CBR%20%2F%3E%24UserCredential%20%3D%20Get-Credential%3CBR%20%2F%3E%24Session%20%3D%20New-PSSession%20-ConfigurationName%20Microsoft.Exchange%20-ConnectionUri%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%3C%2FA%3E%26nbsp%3B-Credential%20%24UserCredential%20-Authentication%20Basic%20-AllowRedirection%3CBR%20%2F%3EImport-PSSession%20%24Session%3CBR%20%2F%3EConnect-MsolService%20-Credential%20%24UserCredential%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E2.%26nbsp%3B%20Run%20the%20below%20command%20to%20add%20required%20SMTP%20address%20as%20an%20alias.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20Set-UnifiedGroup%20-Identity%20%22X%22%20-EmailAddresses%3A%20%40%7BAdd%20%3D%22Y%22%7D%3C%2FP%3E%0A%3CP%3Ehere%20X%20is%20the%20Display%20Name%20of%20Office%20365%20group%20and%20Y%20is%20the%20required%20Email%20ID.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EEg%3A-%20Set-UnifiedGroup%20-Identity%20%22%3C%2FSPAN%3E%3CSPAN%3ETest%20o365Group%3C%2FSPAN%3E%3CSPAN%3E%22%20-EmailAddresses%3A%20%40%7BAdd%20%3D%22test.o365group%40abcd.com%22%7D%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E3.%20Promote%20alias%20as%20a%20primary%20SMTP%20address%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ESet-UnifiedGroup%20-Identity%20%22Test%20O365Group%22%20-PrimarySmtpAddress%20%22test.o365group%40abcd.com%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E4.%20If%26nbsp%3Bnot%20required%2C%20you%20can%20remove%20first%20ID%20using%20below%20command.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESet-UnifiedGroup%20-Identity%20%22%3C%2FSPAN%3E%3CSPAN%3ETest%20o365Group%3C%2FSPAN%3E%3CSPAN%3E%22%20-EmailAddresses%3A%20%40%7BRemove%3D%22test.o365group%40abcd.onmicrosoft.com%22%7D%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EPlease%20note%2C%20For%20updating%20the%20Office%20365%20group%20SMTP%20address%20required%20Global%20Administrator%20access.Hope%20this%20will%20help%20you%20and%20let%20me%20know%20if%20you%20are%20facing%20any%20issue%20on%20this.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20and%20Regards%2C%3C%2FP%3E%0A%3CP%3EYahkoob%20Ayappally%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-134217%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-134217%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20I%20have%20a%20question%2C%20I%20would%20like%20to%20change%20all%20existing%20O365%20Groups%20which%20have%20a%20wrong%20e-mail%20address%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGet-UnifiedGroup%20-Filter%20%7BEmailAddresses%20-like%20'*%40abd.onmicrosoft.com'%7D%20%7C%20Set-UnifiedGroup%20-PrimarySmtpAddress%20but%20I%20Need%20some%20variable%20for%20the%20Name%20before%20the%26nbsp%3B%40%2C%20do%20you%20have%20an%20Idea%3F%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EThanks%20and%20best%20regards%2C%3C%2FP%3E%0A%3CP%3ELuciano%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121917%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121917%22%20slang%3D%22en-US%22%3EDear%20Ryan%2C%3CBR%20%2F%3E%3CBR%20%2F%3EGood%20Day.%3CBR%20%2F%3E%3CBR%20%2F%3EYes%2C%20Thanks%20for%20notifying.%20its%20typo%20error%2C%20mistakenly%20added%20%3A)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-121527%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-121527%22%20slang%3D%22en-US%22%3EThank%20you%20for%20the%20post.%20This%20worked%20like%20a%20charm.%20The%20only%20thing%20is%20the%20typo%20%22%7D%22%20that%20you%20have%20in%20step%203.%20Everything%20else%20works%20great.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-118092%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-118092%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20John%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESteps%20to%20change%20Office%20365%20group%20Email%20address%3A-%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrent%20SMTP%20address%20%3A-%20test.o365group%40abcd.onmicrosoft.com%3C%2FP%3E%3CP%3ERequired%20SMTP%20address%20%3A-%20test.o365group%40abcd.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFollow%20the%20below%20steps%20in%20power%20shell%20using%20Global%20Administrator%20Credentials%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Connect%20to%20Exchange%20Online%20via%20Power%20shell%26nbsp%3B%3CSPAN%3Eusing%20Global%20Administrator%20Credentials%20and%20run%20the%20below%20commends.%20First%20two%20command%20run%20separately.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESet-ExecutionPolicy%20Unrestricted%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EStart-service%20winrm%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EImport-module%20MSOnline%3CBR%20%2F%3E%24UserCredential%20%3D%20Get-Credential%3CBR%20%2F%3E%24Session%20%3D%20New-PSSession%20-ConfigurationName%20Microsoft.Exchange%20-ConnectionUri%20%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%3C%2FA%3E%20-Credential%20%24UserCredential%20-Authentication%20Basic%20-AllowRedirection%3CBR%20%2F%3EImport-PSSession%20%24Session%3CBR%20%2F%3EConnect-MsolService%20-Credential%20%24UserCredential%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E2.%26nbsp%3B%20Run%20the%20below%20command%20to%20add%20required%20SMTP%20address%20as%20an%20alias.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%20Set-UnifiedGroup%20-Identity%20%22X%22%20-EmailAddresses%3A%20%40%7BAdd%20%3D%22Y%22%7D%3C%2FP%3E%3CP%3Ehere%20X%20is%20the%20Display%20Name%20of%20Office%20365%20group%20and%20Y%20is%20the%20required%20Email%20ID.%3C%2FP%3E%3CP%3E%3CSPAN%3ESet-UnifiedGroup%20-Identity%20%22%3C%2FSPAN%3E%3CSPAN%3ETest%20o365Group%3C%2FSPAN%3E%3CSPAN%3E%22%20-EmailAddresses%3A%20%40%7BAdd%20%3D%22test.o365group%40abcd.com%22%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E3.%20Promote%20alias%20as%20a%20primary%20SMTP%20address%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESet-UnifiedGroup%20-Identity%20%22Test%20O365Group%22%20-PrimarySmtpAddress%20%22test.o365group%40abcd.com%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E4.%20If%26nbsp%3Bnot%20required%2C%20you%20can%20remove%20first%20ID%20using%20below%20command.%3C%2FP%3E%3CP%3E%3CSPAN%3ESet-UnifiedGroup%20-Identity%20%22%3C%2FSPAN%3E%3CSPAN%3ETest%20o365Group%3C%2FSPAN%3E%3CSPAN%3E%22%20-EmailAddresses%3A%20%40%7BRemove%3D%22test.o365group%40abcd.onmicrosoft.com%22%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EPlease%20note%2C%20For%20updating%20the%20Office%20365%20group%20SMTP%20address%20required%20Global%20Administrator%20access.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20and%20Regards%2C%3C%2FP%3E%3CP%3EYahkoob%20Ayappally%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-117071%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-117071%22%20slang%3D%22en-US%22%3E%3CP%3E%22%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F67987%22%20target%3D%22_blank%22%3E%40Yahkoob%20Ayappally%3C%2FA%3E%20wrote%3A%3CBR%20%2F%3EIf%20you%20want%20to%20update%20the%20Email%20Address%20of%20the%20Office%20365%20group%2C%20please%20follow%20below%20steps.%3CBR%20%2F%3E%3CBR%20%2F%3EO365%20Group%20Name%20%3A-%20Test%20O365Group%3CBR%20%2F%3ECurrent%20Email%20addres%20%3A-%20test.o365%40abcd.onmicrosoft.com%3CBR%20%2F%3EUpdate%20to%20%3A-%20test.o365%40abcd.com%3CBR%20%2F%3E%3CBR%20%2F%3EFollow%20below%20script%20in%20powershell.%3CBR%20%2F%3E%3CBR%20%2F%3E%40Set-UnifiedGroup%20-Identity%20%22Test%20O365Group%22%20-EmailAddresses%3A%20%40%7Badd%3D%22SMTP%3Atest.o365%40abcd.com%22%7D%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3EIf%20I%20use%20that%20command%2C%20I%20get%20the%20following%20error%3A%3CBR%20%2F%3EThere%20are%20multiple%20primary%20SMTP%20addresses.%20Please%20ensure%20there%20is%20only%20one%20primary%20address%20for%20each%20address%20type.%22%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-115843%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-115843%22%20slang%3D%22en-US%22%3EIf%20you%20want%20to%20update%20the%20Email%20Address%20of%20the%20Office%20365%20group%2C%20please%20follow%20below%20steps.%3CBR%20%2F%3E%3CBR%20%2F%3EO365%20Group%20Name%20%3A-%20Test%20O365Group%3CBR%20%2F%3ECurrent%20Email%20addres%20%3A-%20test.o365%40abcd.onmicrosoft.com%3CBR%20%2F%3EUpdate%20to%20%3A-%20test.o365%40abcd.com%3CBR%20%2F%3E%3CBR%20%2F%3EFollow%20below%20script%20in%20powershell.%3CBR%20%2F%3E%3CBR%20%2F%3ESet-UnifiedGroup%20-Identity%20%22Test%20O365Group%22%20-EmailAddresses%3A%20%40%7Badd%3D%22SMTP%3Atest.o365%40abcd.com%22%7D%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50625%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50625%22%20slang%3D%22en-US%22%3E%3CP%3ESo%20do%20you%20get%20any%20error%20when%20running%20the%20cmdlet%20or%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-50562%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-50562%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20not%20using%20that%20extra%20charecter.%20It%20was%20a%20mistake%20in%20my%20typo.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-49888%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-49888%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20seem%20to%20have%20one%20additional%20%22-%22%20character%20in%20front%20of%20the%20address%2C%20remove%20it%20and%20it%20should%20work%20fine.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-49885%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-49885%22%20slang%3D%22en-US%22%3E%3CP%3EGive%20a%20look%20to%20this%20thread%3A%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365-Groups%2FRenaming-of-O365-groups%2Ftd-p%2F4758%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365-Groups%2FRenaming-of-O365-groups%2Ftd-p%2F4758%3C%2FA%3E%3C%2FP%3E%3CP%3EHope%20it%20helps...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-765447%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-765447%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F67987%22%20target%3D%22_blank%22%3E%40Yahkoob%20Ayappally%3C%2FA%3E%26nbsp%3BThank%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20all%20others%2C%20notice%20this%20method%20won't%20change%20the%20URL%20of%20group's%20SharePoint%20site.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20seems%20to%20be%20a%20pilot%20program%20to%20let%20you%20rename%20sp%20site's%20url.%20The%20latest%20sp%20shell%20cmdlet%20also%20includes%20%60Start-SPOSiteRename%60%20command.%20But%20for%20now%2C%20we%20are%20still%20at%20the%20mercy%20of%20MicroSoft%20to%20make%20it%20available.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foffice365itpros.com%2F2019%2F05%2F02%2Fsharepoint-online-rename-site-names%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365itpros.com%2F2019%2F05%2F02%2Fsharepoint-online-rename-site-names%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1083835%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1083835%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F163818%22%20target%3D%22_blank%22%3E%40Likun%20Chen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20looking%20through%20all%20the%20comments%2C%20I%20believe%20I%20may%20have%20found%20a%20slightly%20simpler%20method.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20following%20example%20is%20assuming%20that%20your%20current%20Office%20365%20Group%20email%20address%20looks%20something%20like%20this%3A%3C%2FLI%3E%3C%2FUL%3E%3CP%3EYourGroupName%40YourTenantName.onmicrosoft.com%20-%20This%20is%20considered%20a%20MOERA%20address.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20example%20is%20also%20assuming%20that%20when%20you%20replace%20the%20existing%20email%20address%20that%20you%20are%20going%20to%20replace%20it%20with%20a%20custom%20domain%20address%20like%20this%3A%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYourNewAddress%40contoso.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20we%20go!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20You%20can%20start%20right%20away%20with%20adding%20a%20primary%20SMTP%20by%20using%20this%3A%3C%2FP%3E%3CP%3ESet-UnifiedGroup%20-Identity%20%22Your%20Group%20Name%22%20-PrimarySmtpAddress%20YourNewAddress%40contoso.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20step%20above%20should%20automatically%20replace%20your%20current%20primary%20SMTP%20address%20and%20move%20the%20current%20primary%20address%20into%20an%20alias%20slot.%20You%20can%20verify%20this%20by%20going%20into%20the%20Office%20365%20Admin%20Center%20(make%20sure%20you%20refresh%20it)%20and%20viewing%20the%20group%20settings.%20Also%2C%20%22contoso.com%22%20in%20the%20step%20above%20refers%20to%20your%20custom%20domain%20address.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Now%20if%20you%20want%20to%20remove%20the%20old%20primary%20address%20which%20is%20now%20an%20alias%20(it's%20the%20alias%20with%20.onmicrosoft.com%20in%20the%20name)%2C%20you%20will%20need%20to%20run%20a%20combination%20add%2Fremove%20command%20based%20on%20the%20-EmailAddresses%20cmdlet.%20Basically%20your%20primary%20address%20was%20most%20likely%20a%20MOERA%20address%20like%20-%20YourGroupName%40YourTenantName.onmicrosoft.com.%20And%20according%20to%20what%20I've%20tried%2C%20Microsoft%20requires%20that%20either%20your%20Primary%20address%20or%20one%20of%20your%20Aliases%20have%20*.onmicrosoft.com%20in%20the%20address.%20To%20accomplish%20this%20you%20can%20run...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESet-UnifiedGroup%20-Identity%20%22Group%20Name%22%20-EmailAddresses%20%40%7Badd%3D%22YourNewAddress%40YourTenatName.onmicrosoft.com%22%3Bremove%3D%22YourOldAddress%40YourTenantName.onmicrosoft.com%22%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20note%3A%20the%20Curly%20brackets%20or%20Braces%20in%20the%20command%20above%20are%20meant%20to%20be%20included%20in%20the%20script%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20to%20recap%20if%20you%20have%20only%20one%20Office%20365%20Group%20email%20address%20(no%20aliases)%20and%20you%20want%20to%20replace%20the%20current%20address%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Add%20a%20primary%20address%20with%20your%20custom%20domain%20using%20-PrimarySmtpAddress%3C%2FP%3E%3CP%3E2.%20Add%20a%20new%20.onmicrosoft.com%20alias%20and%20remove%20the%20old%20one%20in%20the%20same%20command%20using%20-EmailAddresses%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1086361%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1086361%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F163818%22%20target%3D%22_blank%22%3E%40Likun%20Chen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGenerally%20speaking%2C%20site%20URL%20can%20now%20be%20edited%20via%20the%20SP%20Admin%20Center%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1086392%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1086392%22%20slang%3D%22en-US%22%3EThank%20you%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F28814%22%20target%3D%22_blank%22%3E%40Michael%20Malloy%3C%2FA%3E.%20Just%20changed%20the%20url%20in%20thew%20new%20SP%20admin%20center.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1148067%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1148067%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F67987%22%20target%3D%22_blank%22%3E%40Yahkoob%20Ayappally%3C%2FA%3E%26nbsp%3BWorked%20like%20a%20charm%20%3A)%3C%2Fimg%3E%20Nice%2C%20easy%20and%20simple%20to%20follow.%26nbsp%3B%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1459479%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1459479%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20use%20the%20following%20method%20to%20change%20the%20PrimarySMTPAddress%20of%20many%20groups%20at%20once.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%2C%20you%20may%20want%20to%20use%20a%20-Filter%20to%20define%20a%20list%20of%20groups%20rather%20than%20applying%20this%20to%20ALL%20groups.%20In%20my%20case%20I%20used%20a%20list%20of%20test%20groups%20filtering%20them%20by%20DisplayName.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EGet-UnifiedGroup%20-Filter%20%7BDisplayName%20-like%20%22O365Test*%22%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20you%20have%20your%20list%2C%20pipe%20it%20into%20a%20Foreach-Object%20loop%20and%20apply%20the%20new%20PrimarySMTPAddress%20like%20this%20-%20see%20my%20note%20below%20about%20my%20concerns%20with%20this%20before%20proceeding.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EGet-UnifiedGroup%20-Filter%20%7BDisplayName%20-like%20%22O365Test*%22%7D%20%7C%20Foreach-Object%20%7B%20Set-UnifiedGroup%20-Identity%20%24_.Name%20-PrimarySmtpAddress%20%22%24(%24_.Alias)%40groups.domain.com%22%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20a%20PowerShell%20expert.%20So%20please%2C%20test%20in%20a%20lab!!!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20little%20background%20as%20to%20how%20I%20landed%20here...%20We%20have%20an%20Exchange%20Hybrid%20deployment%20with%20Centralized%20Mail%20Flow%2C%20on%20premise.%20This%20is%20because%20we%20have%20services%20on%20prem%20for%20compliance%2C%20archiving%2C%20signatures%2C%20mailing%20lists%2C%20marketing%2C%20etc.%20Our%20MX%20record%20points%20to%20our%20Exchange%20Server%20(well%2C%20actually%20our%20Barracuda%20ESG).%20We%20have%20an%20Edge%20server%20which%20is%20explicitly%20used%20for%20mail%20flow%20between%20On%20Prem%20and%20Exchange%20Online%20to%20avoid%20the%20need%20to%20expose%20our%20Exchange%20Server's%20SMTP%20to%20the%20internet%20(we%20were%20advised%20not%20to%20place%20the%20Barracuda%20between%20Exchange%20Server%20and%20Exchange%20Online%20mail%20flow%2C%20that's%20why%20there's%20an%20Edge%20server).%20The%20Edge%20server%20works%20great%20as%20long%20as%20it's%20NOT%20an%20Office%20365%20Group.%20Emailing%20O365%20Groups%20(or%20Teams)%20from%20any%20on-prem%20Mailbox%20resulted%20in%20a%20Mail%20Loop.%20After%20investigation%2C%20it%20was%20revealed%20Exchange%20Hybrid%20doesn't%20know%20how%20to%20handle%20Office%20365%20groups%2C%20even%20with%20Group%20Writeback%20enabled.%20I%20tried%20modifying%20the%20%22targetAddress%20attribute%20of%20the%20group%20(since%20we%20have%20Group%20Writeback%20enabled)%20in%20Active%20Directory%20with%20no%20success.%20However%2C%20updating%20the%20PrimarySMTPAddress%20of%20the%20Group%20to%20our%20tenent.onmicrosoft.com%20domain%20worked%20perfectly.%20It%20was%20determined%20our%20Exchange%20Server%20simply%20routes%20emails%20destined%20for%20these%20groups%20to%20the%20internet%2C%20ignoring%20any%20Send%20Connectors%20configured%20for%20Exchange%20Hybrid.%20I%20have%20no%20idea%20why%20this%20occurs%2C%20but%20a%20consultant%20was%20able%20to%20recreate%20this%20behavior.%20For%20now%2C%20we%20decided%20to%20create%20a%20groups%20domain%2C%20groups.domain.com%2C%20and%20add%20it%20as%20an%20accepted%20InternalRelay%20domain%20on-prem.%20I%20also%20created%20an%20Email%20Address%20Policy%20in%20Exchange%20Online%20for%20any%20future%20groups%20that%20are%20created.%20Unfortunately%20this%20didn't%20update%20any%20of%20the%20existing%20Groups.%20And%20that's%20how%20I%20landed%20here.%20Posting%20in%20case%20anyone%20else%20needs%20this%20info.%20Cheers.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fset-up-office-365-groups%3Fredirectedfrom%3DMSDN%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fset-up-office-365-groups%3Fredirectedfrom%3DMSDN%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fadmin%2Fcreate-groups%2Fchoose-domain-to-create-groups%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fadmin%2Fcreate-groups%2Fchoose-domain-to-create-groups%3Fview%3Do365-worldwide%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1459549%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20change%20O365%20group%20email%20address%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1459549%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20use%20the%20following%20method%20to%20change%20the%20PrimarySMTPAddress%20of%20many%20groups%20at%20once.%20You%20may%20want%20to%20use%20a%20-Filter%20to%20define%20a%20list%20of%20groups%20rather%20than%20applying%20this%20to%20ALL%20groups.%20In%20my%20case%20I%20used%20a%20list%20of%20test%20groups%20filtering%20them%20by%20DisplayName%20before%20applying%20this%20to%20all%20of%20my%20groups.%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EGet-UnifiedGroup%20-Filter%20%7BDisplayName%20-like%20%22O365Test*%22%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3EThen%20pipe%20it%20into%20a%20Foreach-Object%20loop%20and%20apply%20the%20new%20PrimarySMTPAddress.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EGet-UnifiedGroup%20-Filter%20%7BDisplayName%20-like%20%22O365Test*%22%7D%20%7C%20Foreach-Object%20%7B%20Set-UnifiedGroup%20-Identity%20%24_.Name%20-PrimarySmtpAddress%20%22%24(%24_.Alias)%40groups.domain.com%22%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3EWe%20only%20had%20a%20couple%20dozen%20Office%20365%20Groups%20so%20I%20applied%20the%20new%20PrimarySMTPAddress%20globally.%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EGet-UnifiedGroup%20%7C%20Foreach-Object%20%7B%20Set-UnifiedGroup%20-Identity%20%24_.Name%20-PrimarySmtpAddress%20%22%24(%24_.Alias)%40groups.domain.com%22%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3EA%20little%20background%20as%20to%20how%20I%20landed%20here...%20We%20have%20an%20Exchange%20Hybrid%20deployment%20with%20Centralized%20Mail%20Flow%2C%20on%20premise.%20This%20is%20because%20we%20have%20services%20on%20prem%20for%20compliance%2C%20archiving%2C%20signatures%2C%20mailing%20lists%2C%20marketing%2C%20etc.%20Our%20MX%20record%20points%20to%20our%20Exchange%20Server%20(well%2C%20actually%20our%20Barracuda%20ESG).%20We%20have%20an%20Edge%20server%20which%20is%20explicitly%20used%20for%20mail%20flow%20between%20On%20Prem%20and%20Exchange%20Online%20to%20avoid%20the%20need%20to%20expose%20our%20Exchange%20Server's%20SMTP%20to%20the%20internet%20(we%20were%20advised%20not%20to%20place%20the%20Barracuda%20between%20Exchange%20Server%20and%20Exchange%20Online%20mail%20flow%2C%20that's%20why%20there's%20an%20Edge%20server).%20The%20Edge%20server%20works%20great%20as%20long%20as%20it's%20NOT%20an%20Office%20365%20Group.%20Emailing%20O365%20Groups%20(or%20Teams)%20from%20any%20on-prem%20Mailbox%20resulted%20in%20a%20Mail%20Loop.%20After%20investigation%2C%20it%20was%20revealed%20Exchange%20Hybrid%20doesn't%20know%20how%20to%20handle%20Office%20365%20groups%2C%20even%20with%20Group%20Writeback%20enabled.%20I%20tried%20modifying%20the%20%22targetAddress%20attribute%20of%20the%20group%20(since%20we%20have%20Group%20Writeback%20enabled)%20in%20Active%20Directory%20with%20no%20success.%20However%2C%20updating%20the%20PrimarySMTPAddress%20of%20the%20Group%20to%20our%20tenent.onmicrosoft.com%20domain%20worked%20perfectly.%20It%20was%20determined%20our%20Exchange%20Server%20simply%20routes%20emails%20destined%20for%20these%20groups%20to%20the%20internet%2C%20ignoring%20any%20Send%20Connectors%20configured%20for%20Exchange%20Hybrid.%20I%20have%20no%20idea%20why%20this%20occurs%2C%20but%20a%20consultant%20was%20able%20to%20recreate%20this%20behavior.%20For%20now%2C%20we%20decided%20to%20create%20a%20groups%20domain%2C%20groups.domain.com%2C%20and%20add%20it%20as%20an%20accepted%20InternalRelay%20domain%20on-prem.%20I%20also%20created%20an%20Email%20Address%20Policy%20in%20Exchange%20Online%20for%20any%20future%20groups%20that%20are%20created.%20Unfortunately%20this%20didn't%20update%20any%20of%20the%20existing%20Groups.%20And%20that's%20how%20I%20landed%20here.%20Posting%20in%20case%20anyone%20else%20needs%20this%20info.%20Cheers.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fset-up-office-365-groups%3Fredirectedfrom%3DMSDN%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fset-up-office-365-groups%3Fredirectedfrom%3DMSDN%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fadmin%2Fcreate-groups%2Fchoose-domain-to-create-groups%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fadmin%2Fcreate-groups%2Fchoose-domain-to-create-groups%3Fview%3Do365-worldwide%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Deleted
Not applicable

My organization wants to change email address of O365 group.  I am not able to find any power shell to change email address of already created O365 group.   I tried below command but it is not working. 

 

Set-unifiedgroup -identity  testo365 -primarysmtpaddress test123O365@qqq.onmicrosoft.com

 

Can someone please provide your thoughts on this. 

36 Replies
Highlighted
Highlighted

You seem to have one additional "-" character in front of the address, remove it and it should work fine.

Highlighted

I am not using that extra charecter. It was a mistake in my typo. 

Highlighted

So do you get any error when running the cmdlet or?

Highlighted
Best Response
Solution
If you want to update the Email Address of the Office 365 group, please follow below steps.

O365 Group Name :- Test O365Group
Current Email addres :- test.o365@abcd.onmicrosoft.com
Update to :- test.o365@abcd.com

Follow below script in powershell.

Set-UnifiedGroup -Identity "Test O365Group" -EmailAddresses: @{add="SMTP:test.o365@abcd.com"}
Highlighted

"


@Yahkoob Ayappally wrote:
If you want to update the Email Address of the Office 365 group, please follow below steps.

O365 Group Name :- Test O365Group
Current Email addres :- test.o365@abcd.onmicrosoft.com
Update to :- test.o365@abcd.com

Follow below script in powershell.

@Set-UnifiedGroup -Identity "Test O365Group" -EmailAddresses: @{add="SMTP:test.o365@abcd.com"}

If I use that command, I get the following error:
There are multiple primary SMTP addresses. Please ensure there is only one primary address for each address type."

Highlighted

Hi John,

 

Steps to change Office 365 group Email address:- 

 

Current SMTP address :- test.o365group@abcd.onmicrosoft.com

Required SMTP address :- test.o365group@abcd.com

 

Follow the below steps in power shell using Global Administrator Credentials,

 

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

 

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
Connect-MsolService -Credential $UserCredential

 

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 "Test o365Group" -EmailAddresses: @{Add ="test.o365group@abcd.com"}

 

3. Promote alias as a primary SMTP address,

Set-UnifiedGroup -Identity "Test O365Group" -PrimarySmtpAddress "test.o365group@abcd.com"

 

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

Set-UnifiedGroup -Identity "Test o365Group" -EmailAddresses: @{Remove="test.o365group@abcd.onmicrosoft.com"}

 

Please note, For updating the Office 365 group SMTP address required Global Administrator access.

 

Thanks and Regards,

Yahkoob Ayappally

Highlighted
Thank you for the post. This worked like a charm. The only thing is the typo "}" that you have in step 3. Everything else works great.
Highlighted
Dear Ryan,

Good Day.

Yes, Thanks for notifying. its typo error, mistakenly added :)
Highlighted

Hi, I have a question, I would like to change all existing O365 Groups which have a wrong e-mail address: 

Get-UnifiedGroup -Filter {EmailAddresses -like '*@abd.onmicrosoft.com'} | Set-UnifiedGroup -PrimarySmtpAddress but I Need some variable for the Name before the @, do you have an Idea?


Thanks and best regards,

Luciano

Highlighted

Hai Luciano,

 

Good Day.

 

Yes It is possible, you can add new email ID and you can promote your new Email ID as an SMTP and you can remove your Old Email ID. But performing this steps, you need a global Administrator access.

 

Please follow below Steps to change Office 365 group Email address:- 

 

Current SMTP address :- test.o365group@abcd.onmicrosoft.com

Required SMTP address :- test.o365group@abcd.com

 

Follow the below steps in power shell using Global Administrator Credentials,

 

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

 

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
Connect-MsolService -Credential $UserCredential

 

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.

Eg:- Set-UnifiedGroup -Identity "Test o365Group" -EmailAddresses: @{Add ="test.o365group@abcd.com"}

 

3. Promote alias as a primary SMTP address,

Set-UnifiedGroup -Identity "Test O365Group" -PrimarySmtpAddress "test.o365group@abcd.com"

 

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

Set-UnifiedGroup -Identity "Test o365Group" -EmailAddresses: @{Remove="test.o365group@abcd.onmicrosoft.com"}

 

Please note, For updating the Office 365 group SMTP address required Global Administrator access.Hope this will help you and let me know if you are facing any issue on this.

 

Thanks and Regards,

Yahkoob Ayappally

Highlighted
This works good in principle, using Set-UnifiedGroup to change primary SMTP address, and adding and removing addresses from the EmailAddresses, like in Yahkoob's examples. The unfortunate thing though, if you try to remove an e-mail address, it will not be removed from the Azure AD Group/Exchange group object. You will still see the e-mail address you tried to remove as one of the aliases for the group if you look at the group in the Office 365 Admin portal, or if you look at the proxy addresses using Get-AzureADGroup, Get-AzureADMSGroup or Get-MSOLGroup. There is currently no way you can remove an e-mail address from these groups, so there is an discrepancy between using Set-UnifiedGroup and the group object represented in Exchange Online or Azure AD. Unfortunately, recently I discovered that this proxy addresses also is written back to local AD if you configure Azure AD Connect Group Writeback. This could possibly lead to conflict with local Exchange recipients using the same emailaddress. There really should be a way to remove emailaddresses from Office 365 Groups all the way to prevent conflicts.
Highlighted
Thank you for the post. This worked like a charm.
Highlighted
Highlighted
Highlighted

Thanks for share! works for me amazingly!

Highlighted

cool always welcome Howard :)

Highlighted

works like a charm so Thx, one thing it doesn't seem to do I want to change from Capitals to lowercase

WORD@mail.com to word@mail.com

any advice/suggestions?

Highlighted
Hi Susan,

Thanks for your update!!!

I think you don't worry about the capital and small letters, its case sensitive and you can ignore it. I hope you can change the capital to small letters because mail system is considered as a both are same email address. You can spread your group email ID as usual with word@mail.com and you will receive all emails.

Let me know if you have a more query.
Regards,
Yahkoob A