Office 365 group remove alias

%3CLINGO-SUB%20id%3D%22lingo-sub-263373%22%20slang%3D%22en-US%22%3EOffice%20365%20group%20remove%20alias%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-263373%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20guys%20I%20try%20to%20remove%20the%20alias%20from%20a%20Office%20365%20group%20and%20there%20is%20no%20effect.%20I%20take%20this%20command%20Set-UnifiedGroup%20-Identity%20%22XXXX%22%20-Emailaddress%20%40%7Bremove%3Dname%20of%20address%7D.%20The%20status%20is%20now%20system.collection.hashtable%20and%20the%20entries%20are%20still%20there.%20Is%20there%20another%20command%20to%20do%20this%20with%20powershell%3F%20any%20ideas%3F%20thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-263373%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-264798%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20group%20remove%20alias%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-264798%22%20slang%3D%22en-US%22%3ENo%2C%20only%20the%20associated%20address%2C%20group%20aliases%20from%20the%20default%20domain%2C%20The%20primary%20SMTP%20address%20is%20yet%20changed.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-264428%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20group%20remove%20alias%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-264428%22%20slang%3D%22en-US%22%3E%3CP%3EWorks%20just%20fine%20here.%20Are%20you%20trying%20to%20remove%20the%20primary%20SMTP%20address%3F%20Or%20the%20address%20associated%20with%20the%20group%20alias%20and%20the%20%22default%22%20domain%20in%20the%20organization%3F%20Those%20two%20are%20special%20cases%20that%20need%20to%20be%20handled%20differently.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-264011%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20group%20remove%20alias%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-264011%22%20slang%3D%22en-US%22%3EThere%20are%20four%20entries%20and%20i%20remove%20two%20with%20this%20command%2C%20i%20will%20change%20de%20alias.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-263489%22%20slang%3D%22en-US%22%3ERe%3A%20Office%20365%20group%20remove%20alias%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-263489%22%20slang%3D%22en-US%22%3EIs%20the%20address%20the%20only%20email%20it%20is%20it%20a%20custom%20one%20you%20added%3F%20If%20not%20It%20has%20to%20have%20an%20email%20address%20set%20in%20there%20so%20use%20that%20same%20command%20and%20give%20it%20a%20%E2%80%9CSMTP%3Aemail%40address.com%E2%80%9D%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hello guys I try to remove the alias from a Office 365 group and there is no effect. I take this command Set-UnifiedGroup -Identity "XXXX" -Emailaddress @{remove=name of address}. The status is now system.collection.hashtable and the entries are still there. Is there another command to do this with powershell? any ideas? thanks

4 Replies
Highlighted
Is the address the only email it is it a custom one you added? If not It has to have an email address set in there so use that same command and give it a “SMTP:email@address.com”
Highlighted
There are four entries and i remove two with this command, i will change de alias.
Highlighted

Works just fine here. Are you trying to remove the primary SMTP address? Or the address associated with the group alias and the "default" domain in the organization? Those two are special cases that need to be handled differently.

Highlighted
No, only the associated address, group aliases from the default domain, The primary SMTP address is yet changed.