Exchange 2010 Dynamic Distro Group Sending to All Users
You run that command, you get users have "OfficeAslistedinAD" as their Office location, but when you send email to that group, it send to all users, right? What is the result when you use message tracking to check for emails send to that DDG? From your filter, I didn't see any error, make sure there isn't any other configuration that send emails to all users. Thanks, EvanEvan Liu TechNet Community Support
August 31st, 2012 5:44am

When I send out a test email after taking the steps below, all users are receiving the email, not just those I specified in the filter. I only want those users who have a specific Office attribute in ADUC to receive these emails. I created a DDG in Excchange 2010, selecting the OU my users are located in. I then edited the msExchQueryFilter attribute using ADSI. Here's the filter I have set: ((Alias -ne $null) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and(office -eq'OfficeAsListedinAD') -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox'))) When I test the group with the following two commands using the Exchange Management Shell, I get only the people that have 'OfficeAsListedinAD' as their Office Location. [PS] C:\Windows\system32>$DynamicDL = Get-DynamicDistributionGroup -Identity "OfficeAsListedinAD" [PS] C:\Windows\system32>Get-Recipient -RecipientPreviewFilter $DynamicDL.RecipientFilter |select name,servername Again, all users are receiving the test email. Any help is really appreciated!
Free Windows Admin Tool Kit Click here and download it now
August 31st, 2012 2:33pm

On Thu, 30 Aug 2012 18:37:42 +0000, -Joel- wrote: > > >When I send out a test email after taking the steps below, all users are receiving the email, not just those I specified in the filter. I only want those users who have a specific Office attribute in ADUC to receive these emails. > >I created a DDG in Excchange 2010, selecting the OU my users are located in. I then edited the msExchQueryFilter attribute using ADSI. Here's the filter I have set: ((Alias -ne $null) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and(office -eq'OfficeAsListedinAD') -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox'))) > >When I test the group with the following two commands using the Exchange Management Shell, I get only the people that have 'OfficeAsListedinAD' as their Office Location. [PS] C:\Windows\system32>$DynamicDL = Get-DynamicDistributionGroup -Identity "OfficeAsListedinAD" [PS] C:\Windows\system32>Get-Recipient -RecipientPreviewFilter $DynamicDL.RecipientFilter |select name,servername > >Again, all users are receiving the test email. Any help is really appreciated! Well, one thing that's missing is the -OrganizationalUnit parameter. Add this to your "get-recipient" cmdlet: -OrganizationalUnit $DynamicDL.RecipientContainer --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
August 31st, 2012 5:50pm

On Thu, 30 Aug 2012 18:37:42 +0000, -Joel- wrote: > > >When I send out a test email after taking the steps below, all users are receiving the email, not just those I specified in the filter. I only want those users who have a specific Office attribute in ADUC to receive these emails. > >I created a DDG in Excchange 2010, selecting the OU my users are located in. I then edited the msExchQueryFilter attribute using ADSI. Here's the filter I have set: ((Alias -ne $null) -and (-not(Name -like 'SystemMailbox{*')) -and (-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and (-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and(office -eq'OfficeAsListedinAD') -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox'))) > >When I test the group with the following two commands using the Exchange Management Shell, I get only the people that have 'OfficeAsListedinAD' as their Office Location. [PS] C:\Windows\system32>$DynamicDL = Get-DynamicDistributionGroup -Identity "OfficeAsListedinAD" [PS] C:\Windows\system32>Get-Recipient -RecipientPreviewFilter $DynamicDL.RecipientFilter |select name,servername > >Again, all users are receiving the test email. Any help is really appreciated! Well, one thing that's missing is the -OrganizationalUnit parameter. Add this to your "get-recipient" cmdlet: -OrganizationalUnit $DynamicDL.RecipientContainer --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
August 31st, 2012 5:55pm

Found the answer after some digging and help. I had to add (physicalDeliveryOfficeName=OfficeAsListedinAD) to the msExchDynamicDLFilter field using ADSI. Now the OPATH and LDAP filters are calling the same items and only those users that fit the filter are receiving emails.-Joel-
September 8th, 2012 2:45pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics