Dynamic Distribution Groups
I have created a dynamic distribution group with the following command in powershellNew-DynamicDistributionGroup -name "test group" -OrganizationalUnit 'test.COM/test-test.com/Groups/distribution groups' -RecipientContainer 'test.com/test-test/users' -RecipientFilter{(recipienttype -eq 'usermailbox' -and firstname -ne $null )}This looks like it should work and it does create a group but it isn't filtering the users as it should when i go to "Preview" in the EMC. It shows every user in my domain not just the user container i specified.Also i am unsure how to specify what users can send to this group. In exchange 03 it was as easy as right clicking the group and going to the right tab... i dont see this option in exchange 07 Service Delivery Specialist
February 5th, 2009 2:43am

Hi Sean,~ Verify members of DDG in powershell as per this...How to View Members of a Dynamic Distribution Grouphttp://technet.microsoft.com/en-us/library/bb232019.aspx~ You can configure message delivery restrictions on DDG as per below guide.How to Configure Message Delivery Restrictionshttp://technet.microsoft.com/en-us/library/bb397214.aspxAmit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
February 5th, 2009 7:30am

Thanks Amit,The second point helped... i cant believe i missed that... that will teach me for not taking a break all day.i am following the commands pointed out in the first point but it doesn't seem to work[PS] C:\Documents and Settings\admin\Desktop>$test = Get-DynamicDistributionGroup -identity "All test Users"[PS] C:\Documents and Settings\admin\Desktop>Get-Recipient -Filter $test.RecipientFilterGet-Recipient : The argument cannot be null or empty.At line:1 char:22+ Get-Recipient -Filter <<<< $test.RecipientFilterI know the "All test users" group exists and contains users because we use it so i dont understand whats not working.any thoughts?Thanks Service Delivery Specialist
February 5th, 2009 7:41pm

Cool.... :)Are you running without SP1 on Exchange 2007?Get-Recipient -Filter $test.Recipie is cmdlet for RTM version.Get-Recipient -RecipientPreviewFilter $test.RecipientFilter is correct one for Exchange 2007 SP1...Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
February 5th, 2009 7:50pm

We are using SP1 but im getting the same result[PS] C:\Documents and Settings\admin\Desktop>$test = Get-DynamicDistributionGroup -identity "All test Users"[PS] C:\Documents and Settings\admin\Desktop>Get-Recipient -RecipientPreviewFilter $test.RecipientFilterGet-Recipient : The argument cannot be null or empty.At line:1 char:38+ Get-Recipient -RecipientPreviewFilter <<<< $test.RecipientFilter Service Delivery Specialist
February 6th, 2009 1:34am

What do you see in result when you run below command?$test = Get-DynamicDistributionGroup -identity "All test Users"$test.RecipientFilterFrist command saves all the values of DDG "All test Users" to $test variable.Second command shows the value of RecipientFilter property saved in $test and this should show you the filter mentiond while creating DDG.~ BTW, are you able to see the All test Users in EMC and what's the recipient type it shows in it?Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
February 6th, 2009 7:19am

When i run the command you suggested i didn't get any results it just goes down to the next line waiting for another command.I do see the distribution group in EMC and the recipient type is "Dynamic Distribution Group" Service Delivery Specialist
February 10th, 2009 1:40am

I think i have figured out my issue. When we moved from exchange 2003 to exchange 2007 we did not update the DDG's so they were still doing LDAP rather then OPATH commands and we were getting the wrong results in the preview.Im still trying to work out the syntax for the DDG i want though. I am very surprised with MS that they would take something that was so simple in exchange 03 and make it such a pain to do in Exchange 07. I would really recommend MS come out with an update to give the EMC the same flexibility that it had in exchange03 when it comes to DDG's. Service Delivery Specialist
Free Windows Admin Tool Kit Click here and download it now
February 26th, 2009 6:55pm

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

Other recent topics Other recent topics