locked
DDG and OPATH filter RRS feed

  • Question

  • I have to create some DDG's in Exchange 2007 SP1 and I am looking for tips on how to construct the RecipientFilter portion of the New-DynamicDistributionGroup command. 

    DDG should have all of the the first 4 items and then either of the Office locations.

     

    RecipientType -eq UserMailbox

    Company -like '*Technology*'

    DisplayName -notlike 'zz*'

    Description -notlike '*vendor*'

    Office -like 'NY*' -or Office -like 'NJ*'

    Friday, March 4, 2011 8:06 PM

Answers

  • You can go thru below article to get some idea about How to create OPTAH Syntax.

    Need help converting your LDAP filters to OPATH:

    http://msexchangeteam.com/archive/2007/03/12/436983.aspx

    OPATH recipient filtering for Exchange Server 2007 :

    http://msexchangeteam.com/archive/2007/01/10/432143.aspx

     


    Anil
    • Marked as answer by davrion Tuesday, March 8, 2011 4:43 PM
    Saturday, March 5, 2011 3:54 AM
  • On Fri, 4 Mar 2011 20:06:25 +0000, davrion wrote:
     
    >
    >
    >I have to create some DDG's in Exchange 2007 SP1 and I am looking for tips on how to construct the RecipientFilter portion of the New-DynamicDistributionGroup command.
    >
    >
    >
    >DDG should have all of the the first 4 items and then either of the Office locations.
    >
    >
     
    With the exception of the "Description", the syntax should look
    soething like this:
     
    RecipientType -eq UserMailbox -and Company -like '*Technology*' -and
    DisplayName -notlike 'zz*' -and (Office -like 'NY*' -or Office -like
    'NJ*')
     
    "Description" is not a filterable property.
     
    http://technet.microsoft.com/en-us/library/bb738155(EXCHG.80).aspx
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    • Marked as answer by davrion Tuesday, March 8, 2011 4:43 PM
    Saturday, March 5, 2011 4:04 AM

All replies

  • You can go thru below article to get some idea about How to create OPTAH Syntax.

    Need help converting your LDAP filters to OPATH:

    http://msexchangeteam.com/archive/2007/03/12/436983.aspx

    OPATH recipient filtering for Exchange Server 2007 :

    http://msexchangeteam.com/archive/2007/01/10/432143.aspx

     


    Anil
    • Marked as answer by davrion Tuesday, March 8, 2011 4:43 PM
    Saturday, March 5, 2011 3:54 AM
  • On Fri, 4 Mar 2011 20:06:25 +0000, davrion wrote:
     
    >
    >
    >I have to create some DDG's in Exchange 2007 SP1 and I am looking for tips on how to construct the RecipientFilter portion of the New-DynamicDistributionGroup command.
    >
    >
    >
    >DDG should have all of the the first 4 items and then either of the Office locations.
    >
    >
     
    With the exception of the "Description", the syntax should look
    soething like this:
     
    RecipientType -eq UserMailbox -and Company -like '*Technology*' -and
    DisplayName -notlike 'zz*' -and (Office -like 'NY*' -or Office -like
    'NJ*')
     
    "Description" is not a filterable property.
     
    http://technet.microsoft.com/en-us/library/bb738155(EXCHG.80).aspx
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    • Marked as answer by davrion Tuesday, March 8, 2011 4:43 PM
    Saturday, March 5, 2011 4:04 AM
  • Do I need more parentheses within the RecipientFilter string?  I am getting the error below:

     

    "New-DynamicDistributionGroup : Cannot bind parameter 'RecipientFilter' to the target. Exception setting "RecipientFilter": "Invalid filter syntax."

    –RecipientFilter {RecipientType -eq UserMailbox -and Company -like '*Technology*' -and DisplayName -notlike 'zz*' -and (Office -like 'NY*' -or Office -like 'NJ*')}

    Monday, March 7, 2011 8:39 PM
  • On Mon, 7 Mar 2011 20:39:10 +0000, davrion wrote:
     
    >Do I need more parentheses within the RecipientFilter string? I am getting the error below:
     
    No, you just need to put quotes around "UserMailbox".
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    Tuesday, March 8, 2011 2:57 AM
  • That did the trick! Rich and Anil, thank you for the help!
    Tuesday, March 8, 2011 4:43 PM