Creating Dynamic DL's
I am trying to create a Dynamic DL that will only apply to users in a OU and the only users in a certian office. I thought I had the sytax correct for this but it is not showing me what I need in the preview pane. New-DynamicDistributionGroup -Name "TestDynamic" -OrganizationUnit "domain.com/users/ou" -RecipientFilter {((ReceipientType -eq 'UserMailbox') -and (Office -eq "Office") -and (DistinguishedName -eq "*ou=OU,ou=users,dc=domain,dc=com"))} This will create my DDL but it is empty????? Not sure what I am missing. If I do it this way - New-DynamicDistributionGroup -Name "TestDynamic" -RecipientContainer "domain.com/users/ou" -RecipientFilter {((ReceipientType -eq 'UserMailbox') -and (Office -eq "Office"))} It will create the DDL but it contains users that are not in the -RecipientContainer. I thought it would only cotain the users specified by -RecipientContainer? Thank-you for suggestions! Ryan Russ1a1
August 11th, 2010 7:44pm

This would create a Distribution List called DL1 with your requirements: new-DynamicDistributionGroup -Name 'DL1' -RecipientContainer 'domain.local/OU1' -IncludedRecipients 'AllRecipients' -ConditionalCompany 'Company1' -Alias 'DL1' Mike Crowley Check out My Blog!
Free Windows Admin Tool Kit Click here and download it now
August 11th, 2010 8:54pm

OK so we discovered something..... New-DynamicDistributionGroup -Name "TestDynamic" -RecipientContainer "domain.com/users/ou" -RecipientFilter {((RecipientType -eq 'UserMailbox') -and (Office -eq "OfficeName"))} Is correct and works but Exchange Preview Pane for the DL is broke and does not report correctly, neither does Powershell. We verified that was the case with this reference..... http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_23736104.html The below PS command tells you members but again it is not correct just like the EMC interface. Even though the DDL does work properly. $group = Get-DynamicDistributionGroup –identity “TestDynamic” Get-Recipient –RecipientPreviewFilter $group.RecipientFilter | sort name | select name Russ1a1
August 11th, 2010 10:35pm

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

Other recent topics Other recent topics