Forum Discussion
chozin78
Jun 16, 2022Copper Contributor
Dynamic DL Exclusion
I am trying to exclude certain members in AD that belong to a specific company. It doesn't appear to work when I filter using the objects below: Example -and (Company -ne 'Company A*'))
VasilMichev
Jun 16, 2022MVP
You cannot use wildcards with the -new operator.
chozin78
Jun 17, 2022Copper Contributor
- VasilMichevJun 17, 2022MVPIt will work, but only when comparing against single value. Thus if you have multiple company names to check against, you have to include multiple statements. If you want to use wildcards, the -like operator will do.
- chozin78Jun 19, 2022Copper Contributor
I want to exclude Company A users so -like probably won't work.
- VasilMichevJun 20, 2022MVPUse -notlike then. Or if you want to use a single value, -ne will also do (without the wildcard).