Office 365 group remove alias

Copper 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
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”
There are four entries and i remove two with this command, i will change de alias.

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.

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