Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

OR condition in O365 DynamicDistributionGroup

$
0
0

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”)))}


Viewing all articles
Browse latest Browse all 4521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>