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*'))
7 Replies
- You cannot use wildcards with the -new operator.
- chozin78Copper Contributor
- It 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.