[英]How to modify main address of MS Office 365 group
Hello I need to modify the main mail address of an Office 365 group.您好 我需要修改一个 Office 365 组的主要邮件地址。
How can I change 1st part and domain:如何更改第一部分和域:
Example: I need to change admin@contoso.com to group@contoso.fr How can I do this ?示例:我需要将 admin@contoso.com 更改为 group@contoso.fr 我该怎么做?
I was looking for the same thing, and it's now possible (from january 2019!).我一直在寻找同样的东西,现在可以了(从 2019 年 1 月开始!)。 I found these commands who perfectly works:
我发现这些命令非常有效:
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
Set-UnifiedGroup -Identity admin@contoso.com -PrimarySmtpAddress group@contoso.fr
That perfectly works for me, even if you're trying to send from external email.这对我来说非常有效,即使您尝试从外部电子邮件发送。
Don't forget to return to the default execution policy:不要忘记返回默认执行策略:
Set-ExecutionPolicy Default
Enjoy it :)好好享受 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.