yes that will work, you can add DLs to other DLs with that command
Add-DistributionGroupMember
Rising Flight
3,751
Reputation points
Hello
i have a csv file which has users and dls. i want to make them members of another DL. will the below syntax work. for users i know this syntax will work not sure of the DLs.
Names
u1@mydomain.com
dl1@mydomain.com
dl2@mydomain.com
u2@mydomain.com
Import-csv c:\temp\input.csv | ForEach {Add-DistributionGroupMember -Identity dl3@mydomain.com -Member $_.Names -BypassSecurityGroupManagerCheck}