【问题标题】:PowerShell: add new Aliases to AD Groups (proxyAddresses) based on the existing onesPowerShell:在现有别名的基础上向 AD 组(proxyAddresses)添加新别名
【发布时间】:2021-04-19 15:39:46
【问题描述】:

您好,希望大家一切都好。

我被要求在 AD 中为数千个 DG 的通讯组添加新的代理地址,并将新的代理地址设置为主 SMTP,如下所示;

**Dist. Group example:**
DG Name: TestDistGroup
SMTP:testdistgroup@domain1.com
smtp:tdg@domain1.com
smtp:testdg@domain1.com

我必须将与上述相同的别名添加到 proxyAddresses 列表中,但使用不同的域 (domain2.com),保留现有的并切换当前的主 (SMTP:testdistgroup@domain1 .com) 到 (SMTP:testdistgroup@domain2.com)。

知道用 PowerShell 实现这一目标的最佳方法是什么吗?

我希望我能很好地解释自己。提前感谢您的任何帮助????

【问题讨论】:

    标签: powershell active-directory powershell-2.0 powershell-3.0 powershell-4.0


    【解决方案1】:

    我自己能够完成此任务,并且可以在以下位置找到脚本; https://gist.github.com/heyvoon/a6645bf8d9e1a5f5681aee05c24dbf9c

    【讨论】:

      猜你喜欢
      • 2014-10-08
      • 2018-08-09
      • 1970-01-01
      • 2010-11-07
      • 2015-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-30
      相关资源
      最近更新 更多