Avatar of Dell Admin
Dell Admin
 asked on

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

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

Avatar of undefined
Last Comment
Jamie McKillop

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Jamie McKillop

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Dell Admin

ASKER
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" ?
Jamie McKillop

Sorry, you actually need to use the distinguished name of the group instead of the display name. So MemberofGroup -eq "DN of group"
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes