locked
Set-DynamicDistributionGroup exchange 2007 RRS feed

  • Question

  • I'm trying to change  a DynamicDistributionGroup like the following:

    Set-DynamicDistributionGroup -Identity "TESTDDL" -RecipientContainer "OU=Users,OU=Milan,OU=Subsidiary,OU=Italy,DC=XXXX,DC=XXX" -RecipientFilter {LastName -notlike "Rossi" -and recipienttype -eq "UserMailbox"}

    DDL correctly changed without errors but it seems that the -recipientcontainer option is ignored, the DDL contain all the domain Usermailbox execpted the Rossi ones

    Wednesday, January 11, 2012 11:30 AM

Answers

  • On Wed, 11 Jan 2012 11:30:16 +0000, Davide Lazzari wrote:
     
    >
    >
    >I'm trying to change a DynamicDistributionGroup like the following:
    >
    >Set-DynamicDistributionGroup -Identity "TESTDDL" -RecipientContainer "OU=Users,OU=Milan,OU=Subsidiary,OU=Italy,DC=XXXX,DC=XXX" -RecipientFilter {LastName -notlike "Rossi" -and recipienttype -eq "UserMailbox"}
    >
    >DDL correctly changed without errors but it seems that the -recipientcontainer option is ignored, the DDL contain all the domain Usermailbox execpted the Rossi ones
     
    From where (and how) are you getting the contents of the DDL? Are you
    using the EMC or are you using the EMS?
     
    If you're using the EMS, try the example you see here:
    http://technet.microsoft.com/en-us/library/bb232019.aspx
     
    $MarketingGroup = Get-DynamicDistributionGroup "Marketing Group"
    Get-Recipient -RecipientPreviewFilter $MarketingGroup.RecipientFilter
    -OrganizationalUnit $MarketingGroup.OrganizationalUnit
     
    It's for Exchange 2010 but it works for Exchange 2007, too.
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    Wednesday, January 11, 2012 10:54 PM
  • Yes, Rich is right.

     

    In Exchange 2007, when you try to check with EMS, you can refer to this document:

     

    How to View Members of a Dynamic Distribution Group

    http://technet.microsoft.com/en-us/library/bb232019(EXCHG.80).aspx

     

    Thanks,

     

    Evan


    Evan Liu

    TechNet Community Support

    Wednesday, January 18, 2012 3:59 AM
    Moderator

All replies

  • Hello Davide,

    Please try a slightly different format...

    Set-DynamicDistributionGroup -Identity DistributionGroupName -RecipientContainer ‘domain.com/ouname’  

    In other words use the domain name followed by the OU name, instead of using the distinguished name. You will need to specify the path such as domain.com/parentOUname/OUname..... 

    Regards


    • Edited by AllBarOne Wednesday, January 11, 2012 1:37 PM
    Wednesday, January 11, 2012 1:32 PM
  • Hi Fraser,

     

    Thanks, I tried by same results , all the domain users are listed in preview, should be possible that preview is wrong but DL expansion should right?

    Thank you so mutch

    Davide

    Wednesday, January 11, 2012 3:11 PM
  • Hi Davide,

    I can appreciate you may like doing this via the exchange management shell however in this case I would open EMC > recipient configuration > distribution group > right click dynamic distribution list > properties > filter tab.

    From there you can browse and manually select the recipient container. On the properties of the distribution group you can also change the group name etc.

    If you find any of the options are greyed out using this method it is likely that the group was created in AD and so you should go there to make these amendments.

    Kind Regards


    • Edited by AllBarOne Wednesday, January 11, 2012 4:21 PM
    • Proposed as answer by AllBarOne Friday, January 13, 2012 12:51 PM
    Wednesday, January 11, 2012 4:19 PM
  • On Wed, 11 Jan 2012 11:30:16 +0000, Davide Lazzari wrote:
     
    >
    >
    >I'm trying to change a DynamicDistributionGroup like the following:
    >
    >Set-DynamicDistributionGroup -Identity "TESTDDL" -RecipientContainer "OU=Users,OU=Milan,OU=Subsidiary,OU=Italy,DC=XXXX,DC=XXX" -RecipientFilter {LastName -notlike "Rossi" -and recipienttype -eq "UserMailbox"}
    >
    >DDL correctly changed without errors but it seems that the -recipientcontainer option is ignored, the DDL contain all the domain Usermailbox execpted the Rossi ones
     
    From where (and how) are you getting the contents of the DDL? Are you
    using the EMC or are you using the EMS?
     
    If you're using the EMS, try the example you see here:
    http://technet.microsoft.com/en-us/library/bb232019.aspx
     
    $MarketingGroup = Get-DynamicDistributionGroup "Marketing Group"
    Get-Recipient -RecipientPreviewFilter $MarketingGroup.RecipientFilter
    -OrganizationalUnit $MarketingGroup.OrganizationalUnit
     
    It's for Exchange 2010 but it works for Exchange 2007, too.
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    Wednesday, January 11, 2012 10:54 PM
  • Yes, Rich is right.

     

    In Exchange 2007, when you try to check with EMS, you can refer to this document:

     

    How to View Members of a Dynamic Distribution Group

    http://technet.microsoft.com/en-us/library/bb232019(EXCHG.80).aspx

     

    Thanks,

     

    Evan


    Evan Liu

    TechNet Community Support

    Wednesday, January 18, 2012 3:59 AM
    Moderator