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.

本文标签: