【问题标题】:Creating Dynamic Distribution Group with EmployeeType AD Attribute使用 EmployeeType AD 属性创建动态通讯组
【发布时间】:2020-01-16 10:51:35
【问题描述】:

我们被问到是否可以根据用户 EmployeeType AD 属性中输入的内容来创建 DDG。脚本DDG知识非常有限,Exchange不是我的正常职责范围,对于新手问题表示歉意。

【问题讨论】:

  • 根据Filterable PropertiesemployeeType 在收件人过滤器中是不可过滤的。因此,您将需要使用另一个属性,例如 CustomAttribute* 之一,或者使用另一个进程来更新组成员资格。

标签: powershell exchange-server-2010


【解决方案1】:

这个问题缺乏细节,无法给出一个特殊的答案。不过,这里有一个可以帮助您入门的想法。

您希望做的是使用New-DynamicDistributionGroup-RecipientFilter 参数。该参数支持具有有限 filterable properties 和比较运算符的 OPATH 过滤器。根据文档,employeeType不能使用 OPATH 过滤器过滤。

作为替代方案,您可以有一个自动或脚本化的过程来更新动态组可以有条件地查询的属性。下面是使用employeeType 更新extensionAttribute1 的示例。

Get-AdUser -Filter "employeeType -eq 'Vendor'" |
    Set-AdUser -Replace @{'extensionAttribute1' = 'Vendor'}

然后您可以基于ConditionalCustomAttribute1 创建一个动态通讯组,该通讯组映射到AD 中的extensionAttribute1

New-DynamicDistributionGroup -Name "Vendor Dynamic Group" -IncludedRecipients "MailboxUsers" -ConditionalCustomAttribute1 "Vendor"

请注意,您可以查询多个值,因为-ConditionalCustomAttribute1 接受一个数组。所以你可以传递-ConditionalCustomAttribute1 "Vendor","Contractor",它会在extensionAttribute1 中寻找VendorContractor 的值。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-12
    • 1970-01-01
    • 2020-06-23
    • 2017-03-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多