question

RisingFlight-7863 avatar image
0 Votes"
RisingFlight-7863 asked KaelYao-MSFT commented

Add-DistributionGroupMember

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}

office-exchange-server-administrationoffice-exchange-online-itprooffice-exchange-server-mailflow
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @RisingFlight-7863

Yes this syntax would also work for DLs.

0 Votes 0 ·

Hi @RisingFlight-7863

I am writing here to confirm with you how thing going now?
If you have any questions or needed further help on this issue, please feel free to post back.

0 Votes 0 ·

1 Answer

AndyDavid avatar image
1 Vote"
AndyDavid answered

yes that will work, you can add DLs to other DLs with that command

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.