Link to home
Start Free TrialLog in
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?
ASKER CERTIFIED SOLUTION
Avatar of Jamie McKillop
Jamie McKillop
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dell Admin
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" ?
Sorry, you actually need to use the distinguished name of the group instead of the display name. So MemberofGroup -eq "DN of group"