Exchange 2007 Dynamic DL with binary flag in a custom attribute

Looking at organising some contacts (new, well controlled) into dynamic DLs.
For future proofing I'd liek to use a single custom attribute and give it a binary value which indicates all the DLs that contact should appear in.

001 = DL1
010 = DL2
011 + DL1 + DL2
100 = DL3
101 = DL3 + DL1

Now I can see how to generate the value (probably not in the exchange shell) by having a use check some boxes and copy and paste into the contact.
How can I write an extensible query for each DL?

etc

Can I write queries with binary ops?
LVL 16
Carol ChisholmAsked:
Who is Participating?
 
Carol ChisholmConnect With a Mentor Author Commented:
Gave up on this one
0
 
Chris DentPowerShell DeveloperCommented:

> Can I write queries with binary ops?

It's not mentioned anywhere in the documentation for OPath queries.

At least one potential problem is that the attribute you're using is a String, not Binary (even if you fill it with a string of 1's and 0's). That might mess up binary comparison if it tries to implicitly convert the string to binary.

That said, it may be worth trying to use the Bitwise And (-BAnd), I don't expect it to work, but trying won't hurt :)

Chris
0
All Courses

From novice to tech pro — start learning today.