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.

Reply via email to