动态通讯组列表——委员会成员如何生成
我可以创建动态通讯组列表,例如,
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,发现动态分布列表可以在具有项目列表的自定义属性中查找项目,因此:
然后,为每个用户设置这样的属性:
看来您必须使用 ExtensionCustomAttributes 之一才能执行此操作像这样的列表。
Yes, found that dynamic distrubtion lists can look for an item in a custom attribute that has a list of items, thus:
Then, set an attribute like this for each user:
It seems you must use one of the ExtensionCustomAttributes to be able to do a list like this.