DDG and OPATH filter
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*'
March 4th, 2011 3:16pm
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
Free Windows Admin Tool Kit Click here and download it now
March 4th, 2011 10:56pm
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
March 4th, 2011 11:06pm
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*')}
Free Windows Admin Tool Kit Click here and download it now
March 7th, 2011 3:40pm
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
March 7th, 2011 9:58pm
That did the trick! Rich and Anil, thank you for the help!
Free Windows Admin Tool Kit Click here and download it now
March 8th, 2011 11:44am