Forum Discussion
Admin center for Outlook Groups?
Below cmdlet, will set the new primary email address for the group.
set-unifiedGroup -Identity <GroupName> -PrimarySMTPAddress <new email address>
To remove the old email address, run the below one along with the first cmdlet.
set-unifiedGroup -Identity <GroupName> -EmailAddress SMTP:<newemailaddress>
Hi, thanks to you both.
I tried to run :
set-unifiedGroup -Identity "My Group" -PrimarySMTPAddress "mygroup@mydomain.com"
and here is the error message I got :
set-unifiedGroup : The term 'set-unifiedGroup' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ set-unifiedGroup -Identity "My Group" -PrimarySMTPAddress "myemail ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (set-unifiedGroup:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExceptionIs there something I should do before running the commands?
Thanks
David
- Dec 07, 2016
First you need to connect to Exchange Online through powershell remoting.
https://technet.microsoft.com/en-us/library/jj984289(v=exchg.160).aspx
- David SaberDec 07, 2016Brass Contributor
Thanks this has worked perfectly, however in Outlook Desktop app, the alias is not updated, and the member list is empty. It kind of lost the link to the group... How can I fix this? Thanks
- Dec 08, 2016
I have tested the script again here and checked, the member list is not empty. Can you post the screen-shot of the page with empty member list?
To change the alias and display name of the O365 group, use the below PowerShell script.
set-unifiedGroup -Identity Engineering -DisplayName Engineering2 -Alias Engineering2