动态通讯组列表——委员会成员如何生成

发布于 2025-01-13 04:57:09 字数 840 浏览 2 评论 0原文

我可以创建动态通讯组列表,例如,

Set-DynamicDistributionGroup -Identity "Atlanta" -RecipientFilter "(Department -eq 'Atlanta')"

这很好用,因为每个人只有一个部门,

但我的人也在大约 50 个委员会中的一个或多个委员会中,所以我正在寻找一种为每个委员会创建动态通讯组列表的方法。

Set-DynamicDistributionGroup -Identity "Tech Committee" -RecipientFilter "(Department -like '*Tech*')"

看起来很合乎逻辑,但您只能使用通配符作为后缀,而不能作为前缀或在搜索字符串的中间。我认为我需要的是能够以某种方式用某种委员会列表填充属性,然后在过滤器中匹配一个,例如(伪代码)

user.someattribute = tech committee, pr committee, membership committee
Set-DynamicDistributionGroup -Identity "Tech Committee" -RecipientFilter "(someattribute -contains 'Tech Committee')"

但是 -contains 对于 -recipientfilter 也是无效的。有什么聪明的方法来做这样的事情吗?只有 15 个自定义属性,我认为每个委员会都有一个特殊属性,但我们有 50 多个委员会。我可以整天添加扩展属性,但我不知道如何在 -recipientfilter 中使用它们,因为它位于 Exchange 中。

I can create dynamic distribution lists, e.g.

Set-DynamicDistributionGroup -Identity "Atlanta" -RecipientFilter "(Department -eq 'Atlanta')"

which works fine, since each person has only one Department

But my people are also on one or more of about 50 committees, so I'm looking for a way to create a dynamic distribution list for each committee.

Set-DynamicDistributionGroup -Identity "Tech Committee" -RecipientFilter "(Department -like '*Tech*')"

Would seem logical but you can only use a wildcard as a suffix, not as a prefix or in the middle of a search string. What I think I need is to be able to somehow populate an attribute with some kind of list of committees, and then match one in the filter, e.g. (pseudo-code)

user.someattribute = tech committee, pr committee, membership committee
Set-DynamicDistributionGroup -Identity "Tech Committee" -RecipientFilter "(someattribute -contains 'Tech Committee')"

But -contains is also not valid for a -recipientfilter. Is there some clever way to do something like this? There are only 15 Custom Attributes and I considered a special attribute for each committee, but we have 50+ committees. I can add extension attributes all day, but I don't see how they can be used in a -recipientfilter since it is in Exchange.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟酒忠诚 2025-01-20 04:57:09

是的,发现动态分布列表可以在具有项目列表的自定义属性中查找项目,因此:

New-DynamicDistributionGroup -Name "Leaders" -DisplayName "Leaders" - 
PrimarySMTPAddress [email protected] -RecipientFilter " 
(ExtensionCustomAttribute1 -eq \'ldr\')"'

然后,为每个用户设置这样的属性:

Get-Recipient -identity $User.ObjectID | Set-Mailbox -ExtensionCustomAttribute1 
cipr-leader,cipr,techopswg,wgl,ldr

看来您必须使用 ExtensionCustomAttributes 之一才能执行此操作像这样的列表。

Yes, found that dynamic distrubtion lists can look for an item in a custom attribute that has a list of items, thus:

New-DynamicDistributionGroup -Name "Leaders" -DisplayName "Leaders" - 
PrimarySMTPAddress [email protected] -RecipientFilter " 
(ExtensionCustomAttribute1 -eq \'ldr\')"'

Then, set an attribute like this for each user:

Get-Recipient -identity $User.ObjectID | Set-Mailbox -ExtensionCustomAttribute1 
cipr-leader,cipr,techopswg,wgl,ldr

It seems you must use one of the ExtensionCustomAttributes to be able to do a list like this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文