Can I include a Distribution List (DL) or Dynamic Distribution List (DDL) inside a DDL? If yes, how?

Dell Admin
Dell Admin used Ask the Experts™
on
Can I include a Distribution List (DL) or Dynamic Distribution List (DDL) inside a DDL? If yes, how?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hello,

You can include members of another group by use the "MemberofGroup" attribute in your recipient filter. For example: (MemberofGroup -eq 'All Employees').

For dynamic distribution groups, you would just modify the recipient filter on the new group so that adds the recipient filter of the other dynamic group.

Author

Commented:
Thank you for the answer.
One question though. How to verify it it really works?
Here I created a test DDL:
New-DynamicDistributionGroup -Name "testDDG2" -RecipientFilter {MemberofGroup -eq "CL-IT"}

and I tried the following command and got no result:
Get-DynamicDistributionGroup testDDG2 | foreach {Get-Recipient -RecipientPreviewFilter $_.recipientfilter}

At the same time, I'm sure the DL "CL-IT" does contain two mailboxes
Get-DistributionGroupMember CL-IT

So again, how to tell if the DDL testDDG2 contains the two mailboxes of DL "CL-IT" ?
Sorry, you actually need to use the distinguished name of the group instead of the display name. So MemberofGroup -eq "DN of group"

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial