locked
Dynamic Distribution Group Creation doesn't seem to work as expected RRS feed

  • Question

  • Hi,

    Trying to create a DDL that includes users based on the user's parent container which is:

    new-DynamicDistributionGroup -Name "TEST ISSYSTEMS"  -OrganizationalUnit "h2o.mydomain.com/Distribution Groups" -RecipientFilter {RecipientContainer -eq 'OU=ISSystems,DC=h2o,DC=mydomain,DC=com' -and RecipientTypeDetails -eq 'UserMailbox'}

    Command runs fine and the DDL is created. But when I preview the list, it is empty.

    Am I doing something wrong here?

    M



    • Edited by MKSanchez Thursday, July 26, 2012 7:39 PM
    Thursday, July 26, 2012 7:38 PM

Answers

  • On Thu, 26 Jul 2012 19:38:47 +0000, MKSanchez wrote:
     
    >
    >
    >Hi,
    >
    >Trying to create a DDL that includes users based on the user's parent container which is:
    >
    >
    >
    >new-DynamicDistributionGroup -Name "TEST ISSYSTEMS" -OrganizationalUnit "h2o.mydomain.com/Distribution Groups" -RecipientFilter {RecipientContainer -eq 'OU=ISSystems,DC=h2o,DC=mydomain,DC=com' -and RecipientTypeDetails -eq 'UserMailbox'}
    >
    >
    >
    >Command runs fine and the DDL is created. But when I preview the list, it is empty.
    >
    >
    >
    >Am I doing something wrong here?
     
    Take the "RecipientContainer" out of the Recipient Filter and use this
    parameter:
    -RecipientContainer 'OU=ISSystems,DC=h2o,DC=mydomain,DC=com'
     
    In fact, you should be able to remove the "-RecipientFilter" entirely
    and just use "-IncludedRecipients MailboxUsers".
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    • Marked as answer by Gavin-Zhang Thursday, August 9, 2012 3:48 AM
    Saturday, July 28, 2012 2:08 AM
  • On Fri, 27 Jul 2012 21:15:57 +0000, MKSanchez wrote:
     
    >Yes there are. If I create the DDL using the -RecipientContainer parameter, it works properly. However, my ultimate goal is to create a DDL that includes users from more than one OU and thus cannot use -RecipientContainer to accomplish this.
    >
    >
    >
    >Any help is greatly appreciated.
     
    Create one DDL for each OU and add the DDLs to a "normal" distribution
    group. Hide the DDLs from the GAL.
     
    The OU is the base for the search. What you're trying to do is better
    accomplished by use a unique value in some property that's common to
    all the mailboxes you want to be included. No that property value will
    follow the mailbox wherever it's moved to in the AD.
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    • Marked as answer by Gavin-Zhang Thursday, August 9, 2012 3:48 AM
    Saturday, July 28, 2012 2:37 AM

All replies

  • No help for this???
    Friday, July 27, 2012 2:07 PM
  • Are there user accounts in the  'OU=ISSystems,DC=h2o,DC=mydomain,DC=com'  OU?  It's filtering for users in this Org. Unit.
    Friday, July 27, 2012 2:45 PM
  • Yes there are. If I create the DDL using the -RecipientContainer parameter, it works properly. However, my ultimate goal is to create a DDL that includes users from more than one OU and thus cannot use -RecipientContainer to accomplish this.

    Any help is greatly appreciated.

    M

    Friday, July 27, 2012 9:15 PM
  • On Thu, 26 Jul 2012 19:38:47 +0000, MKSanchez wrote:
     
    >
    >
    >Hi,
    >
    >Trying to create a DDL that includes users based on the user's parent container which is:
    >
    >
    >
    >new-DynamicDistributionGroup -Name "TEST ISSYSTEMS" -OrganizationalUnit "h2o.mydomain.com/Distribution Groups" -RecipientFilter {RecipientContainer -eq 'OU=ISSystems,DC=h2o,DC=mydomain,DC=com' -and RecipientTypeDetails -eq 'UserMailbox'}
    >
    >
    >
    >Command runs fine and the DDL is created. But when I preview the list, it is empty.
    >
    >
    >
    >Am I doing something wrong here?
     
    Take the "RecipientContainer" out of the Recipient Filter and use this
    parameter:
    -RecipientContainer 'OU=ISSystems,DC=h2o,DC=mydomain,DC=com'
     
    In fact, you should be able to remove the "-RecipientFilter" entirely
    and just use "-IncludedRecipients MailboxUsers".
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    • Marked as answer by Gavin-Zhang Thursday, August 9, 2012 3:48 AM
    Saturday, July 28, 2012 2:08 AM
  • On Fri, 27 Jul 2012 21:15:57 +0000, MKSanchez wrote:
     
    >Yes there are. If I create the DDL using the -RecipientContainer parameter, it works properly. However, my ultimate goal is to create a DDL that includes users from more than one OU and thus cannot use -RecipientContainer to accomplish this.
    >
    >
    >
    >Any help is greatly appreciated.
     
    Create one DDL for each OU and add the DDLs to a "normal" distribution
    group. Hide the DDLs from the GAL.
     
    The OU is the base for the search. What you're trying to do is better
    accomplished by use a unique value in some property that's common to
    all the mailboxes you want to be included. No that property value will
    follow the mailbox wherever it's moved to in the AD.
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    • Marked as answer by Gavin-Zhang Thursday, August 9, 2012 3:48 AM
    Saturday, July 28, 2012 2:37 AM
  • Hi Mksanchez,

    Any update for your issue?
    Above gave some good suggestion.

    Regards!

    Gavin

    TechNet Community Support

    Tuesday, July 31, 2012 9:41 AM