简体   繁体   English

如何修改MS Office 365组的主地址

[英]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:我发现这些命令非常有效:

  1. Connect to PowerShell (with admin rights)连接到 PowerShell(具有管理员权限)
  2. Allow Remote Signed scripts:允许远程签名脚本:

Set-ExecutionPolicy RemoteSigned

  1. Log with O365 admin user:使用 O365 管理员用户登录:

$UserCredential = Get-Credential

  1. Create new session:创建新会话:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

  1. Import session:导入会话:

Import-PSSession $Session

  1. Set the new address:设置新地址:

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.

相关问题 从Office 365通讯组导出电子邮件地址和手机号码 - Export Email Address and Mobile Number from Office 365 Distribution Group 如何创建动态 Office 365 组 - How to create a Dynamic Office 365 Group 如何将 Office 365 组成员身份复制到另一个组? - How to copy Office 365 group membership to another group? 如何验证Office 365地址以匿名发送? - How can I authenticate Office 365 address to send anonymously? 导出不在 Office 365 安全组中的用户 - Export users not in an office 365 security group 尝试将用户添加到Office 365组(AzureAD) - Trying to add users to office 365 group (AzureAD) Office 365组分类:创建组后如何限制用户更改分类 - Office 365 group classifications: How to restrict users from changing classification after the creation of the group 如何将Office 365中的域列表添加到PowerShell中的Azure组? - How to add list of people from a domain in Office 365 to an Azure group in PowerShell? 如何从包含“AZ-APP-office 365”的组中检索整个用户的详细信息 - how to retrieve whole user's detail from group which contain "AZ-APP-office 365" 如何在 Office 365/Azure 中使用 Powershell 添加/更新自定义 DNS A 记录? 所以当ISP改变它时我可以更新IP地址 - How to add/ update custom DNS A Records using Powershell in Office 365/ Azure? So I can update IP address when ISP changes it
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM