Forum Discussion

null null's avatar
null null
Copper Contributor
Sep 27, 2018

Office 365 group remove alias

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”
    • null null's avatar
      null null
      Copper Contributor
      There are four entries and i remove two with this command, i will change de alias.
      • VasilMichev's avatar
        VasilMichev
        MVP

        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.

Resources