Strange behavior in Dynamic Distribution groups (DDG)

by acefoster at 2013-04-30 06:54:36

Hi guys. While try to understand how DDG works, I’ve faced with one strange behavior.
Begin from the start. I’m trying to create DDG with next command
New-DynamicDistributionGroup -Name “Test DDG” -alias TestDDG -IncludedRecipients {MailboxUsers} -RecipientContainer “ Region/Some Office/user” -OrganizationalUnit " Mail Groups"
Then trying to check recipients with command
$DynGroup = Get-DynamicDistributionGroup -Identity TestDDG
Get-Recipient -RecipientPreviewFilter $DynGroup.RecipientFilter -OrganizationalUnit $DynGroup.RecipientContainer | ft Name,OrganizationalUnit

or via Preview in Exchange console, ang getting some intersting results. In output I have users that are located in child OUs. Ex. in: Region/Some Office/user/part-time Region/Some Office/user/some_OU
But I didn’t ask Exchange for that! Just to look in certain OU and nothing else. So I made conclusion -RecipientContainer working recursively by default. So I began to investigate with -RecipientFilter parameter to filter and narrow results. As guide I’ve used article
I’ve found that among Common Filterable Properties there is no any property that could filter OU, but there is also exist Advanced Filterable Properties with RecipientContainer property.
But no matter what I’ve tried, I have no result. Examples:
-RecipientFilter {RecipientContainer -eq “ Region/Some Office/user”}
-RecipientFilter {((RecipientContainer -neq “ Region/Some Office/user”) -and (RecipientContainer -neq “ Region/Some Office/some_OU”))}
-RecipientFilter {(RecipientContainer -like “*user”)}

and other else
Could you please point me, what am I missing. Thanks!
by lopyeg at 2013-05-01 01:23:36
The same issue raised.
Could anybody help, please?