Can someone help me with the syntax to add an "OR" condition?
I have a DynamicDistributionList with 2 conditions: StateorProvidence -eq Chicago AND Department-Sales
(THIS PART WORKS FINE AND I HAVE MY GROUP)
However, I want to add other condition (an OR condtion) to add all part timers in Chicago to the group: StateorProvidence -eq Chicago AND CustomAttribute1 -eq Parttime
I can't quite get the right syntax and parentheses right. Can someone advise? THANK YOU!
Set-DynamicDistributionGroup -Identity "All Chicago Sales"
-RecipientFilter {(((RecipientType
-eq 'UserMailbox') -and ((StateOrProvince -eq 'Chicago' and Department eq
Sales)) -or ((StateOrProvince -eq 'Chicago' and CustomAttribute1 eq
Parttime)))}