So after running: Connect-Online we can now access the online-cmdlets used for this post: Get-UnifiedGroup and Set-UnifiedGroup. Notice that we will use Get-UnifiedGroup instead of Get-MsolGroup this time.

Firstly to make sure we have the correct group we retrieve the group we want to change email address for:

If we want we could also change some other settings for the group, such as hidden from address book, accept from external senders etc. Here is an example on how to make the group hidden: Set-UnifiedGroup Test -HiddenFromAddressListsEnabled