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?
Dell AdminAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jamie McKillopIT ManagerCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dell AdminAuthor 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" ?
0
Jamie McKillopIT ManagerCommented:
Sorry, you actually need to use the distinguished name of the group instead of the display name. So MemberofGroup -eq "DN of group"
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.