Hi,

I am trying to query Active Directory to find all users that have the Email Policy turned off. The msExchPoliciesExcluded is what I am trying to search for using the value =\{26491CFC-9E50-4857-861B-0CB8DF22B5D7\} which is the value for any user that has it disabled, but I can't get any results. I have tried msExchPoliciesExcluded=True, =*, !Null but nothing I have will return results.
My search string is like this:strQuery = "<" & oConfig.adspath & ">;(&(objectCategory=person)(objectClass=User)(msExchPoliciesExcluded=\{26491CFC-9E50-4857-861B-0CB8DF22B5D7\}));name,objectClass;subtree"

Any thoughts?