Sorry, a keystroke error sent the previous message prematurely. That's different than the ones you first posted, and more like the one I gave you.
As to the difference between objectCategory and objectClass, if you want only users, your query should be: (&(&(objectCategory=person)(objectClass=user))(|(physicalDeliveryOfficeName= AAA BBB)(physicalDeliveryOfficeName=AAA CCC))) If you want both contacts and users, it should be: (&(objectCategory=person)(|(physicalDeliveryOfficeName=AAA BBB)(physicalDeliveryOfficeName=AAA CCC))) Here's one reference that describes it pretty well: http://www.rlmueller.net/ADOSearchTips.htm In your second one query string, the leading (& and trailing ) are superfluous. It won't hurt anything to leave them there, but they don't do anything. Ed Crowley MCSE+Internet MVP Freelance E-Mail Philosopher Protecting the world from PSTs and Bricked Backups!T -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Evan Mann Sent: Friday, March 17, 2006 12:04 PM To: Exchange Discussions Subject: RE: Recipient Policy Filter Rules This is the one that works when I put it in as a LDAP query, custom search (&(objectCategory=user)(|(physicalDeliveryOfficeName=AAA BBB)(physicalDeliveryOfficeName=AAA CCC))) When I view the filter in ESM, it shows like this for some reason: (&(&(objectCategory=user)(|(physicalDeliveryOfficeName=AAA BBB)(physicalDeliveryOfficeName=AAA CCC)))) If I use objectClass=user instad of objectCategory=user, it also works. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Crowley [MVP] Sent: Friday, March 17, 2006 2:57 PM To: Exchange Discussions Subject: RE: Recipient Policy Filter Rules The second one is working fine? Do you have users that have the office "AAA BBB" AND "AAA CCC" at the same time? Ed Crowley MCSE+Internet MVP Freelance E-Mail Philosopher Protecting the world from PSTs and Bricked Backups!T -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Evan Mann Sent: Friday, March 17, 2006 11:02 AM To: Exchange Discussions Subject: RE: Recipient Policy Filter Rules Both the of the queries I posted were generated by Exchange. It chose objectCategory. I realized the queries are and statements, I was just using them as examples. I have a few other filters I'm using to filter on Office Location and those also chose objectCategory. They have been working fine. Why would I want objectClass instead of objectCategory? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Crowley [MVP] Sent: Friday, March 17, 2006 1:54 PM To: Exchange Discussions Subject: RE: Recipient Policy Filter Rules The query under 2 won't work because it requres the office to be AAA BBB and AAA CCC. Also, objectCategory isn't what you want to use, it's objectClass. The query should be (with line breaks added for readability): (&(objectClass=user) (|(physicalDeliveryOfficeName=AAA BBB) (physicalDeliveryOfficeName=AAA CCC))) Ed Crowley MCSE+Internet MVP Freelance E-Mail Philosopher Protecting the world from PSTs and Bricked Backups!T -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Evan Mann Sent: Friday, March 17, 2006 7:53 AM To: Exchange Discussions Subject: Recipient Policy Filter Rules I want to filter on Office location. Is the following: If the office location is exactly AAA BBB OR AAA CCC. The recipient policy filter tool gives me two different queries depending on what method I use, however both of these are AND statements. 1) Choose Users and Computers under "Find", clicked Advanced tab, specificed User/Office Location is exactly AAA BBB and clicked Add. The Specified User/Office Location is exactly AAA CCC and clicked Add. (&(&(&(|(&(objectCategory=person)(objectSid=*)(!samAccountType:1.2.840.1 13556.1.4.804:=3))(&(objectCategory=person)(!objectSid=*))(&(objectCateg ory=group)(groupType:1.2.840.113556.1.4.804:=14))))(objectCategory=user) (physicalDeliveryOfficeName=AAA BBB)(physicalDeliveryOfficeName=AAA CCC))) 2) Chose Custom Search under "Find". Specified User/Office Location is exactly AAA BBB and clicked Add. Then specified User/Office Location is exactly AAA CCC and clicked Add. (&(objectCategory=user)(physicalDeliveryOfficeName=AAA BBB)(physicalDeliveryOfficeName=AAA CCC)) As you can see, when I use "Users and Computers", I get some extra search paramters. My first question is why is the query different depending on which "find category" I use. Then I do a "find now" in the query tool, they both return the same exact results. Does it matter which one I use? And the next question is, how could I modify the query to be an OR statement. _________________________________________________________________ List posting FAQ: http://www.swinc.com/resource/exch_faq.htm Web Interface: http://intm-dl.sparklist.com/read/?forum=exchange To subscribe: http://e-newsletters.internet.com/discussionlists.html/ To unsubscribe send a blank email to [EMAIL PROTECTED] Exchange List admin: [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with. _________________________________________________________________ List posting FAQ: http://www.swinc.com/resource/exch_faq.htm Web Interface: http://intm-dl.sparklist.com/read/?forum=exchange To subscribe: http://e-newsletters.internet.com/discussionlists.html/ To unsubscribe send a blank email to [EMAIL PROTECTED] Exchange List admin: [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with. _________________________________________________________________ List posting FAQ: http://www.swinc.com/resource/exch_faq.htm Web Interface: http://intm-dl.sparklist.com/read/?forum=exchange To subscribe: http://e-newsletters.internet.com/discussionlists.html/ To unsubscribe send a blank email to [EMAIL PROTECTED] Exchange List admin: [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with. _________________________________________________________________ List posting FAQ: http://www.swinc.com/resource/exch_faq.htm Web Interface: http://intm-dl.sparklist.com/read/?forum=exchange To subscribe: http://e-newsletters.internet.com/discussionlists.html/ To unsubscribe send a blank email to [EMAIL PROTECTED] Exchange List admin: [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with. _________________________________________________________________ List posting FAQ: http://www.swinc.com/resource/exch_faq.htm Web Interface: http://intm-dl.sparklist.com/read/?forum=exchange To subscribe: http://e-newsletters.internet.com/discussionlists.html/ To unsubscribe send a blank email to [EMAIL PROTECTED] Exchange List admin: [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with. _________________________________________________________________ List posting FAQ: http://www.swinc.com/resource/exch_faq.htm Web Interface: http://intm-dl.sparklist.com/read/?forum=exchange To subscribe: http://e-newsletters.internet.com/discussionlists.html/ To unsubscribe send a blank email to [EMAIL PROTECTED] Exchange List admin: [EMAIL PROTECTED] To unsubscribe via postal mail, please contact us at: Jupitermedia Corp. Attn: Discussion List Management 475 Park Avenue South New York, NY 10016 Please include the email address which you have been contacted with.
