admin管理员组文章数量:1400182
Here's the problem. One of the fields we are using to build our dynamic distribution list has the potential to have multiple values. It's an extension attribute that can have either a single value, like "123", or multiple values, like "765,123,626". I'm trying to get my dynamic distribution list filter to be able to pick up any user with "123". I know how to do this with regex in PowerShell using the -match or -contains operators. However, the filters for dynamic distribution lists are more restrictive. I have tried to use:
((CustomAttribute2 -like '$variableName*') -or (CustomAttribute2 -like '*$variableName'))
However, I get error messages basically saying that I can't use that filter. I've also tried:
(CustomAttribute2 -like '*$variableName*')
This produced an error message that wildcards cannot be used at the start of the expression.
I'm sure there's a way to do what I need to do, but I'm at a loss. Thank you for your time and thank you in advance for the help.
本文标签:
版权声明:本文标题:powershell - How do I filter Exchange Dynamic Distribution Groups for multiple potential criteria? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744132490a2592242.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论