Share via

Add-DistributionGroupMember

Rising Flight 6,456 Reputation points
2022-04-30T13:34:41.167+00:00

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
******@mydomain.com
******@mydomain.com
******@mydomain.com
******@mydomain.com

Import-csv c:\temp\input.csv | ForEach {Add-DistributionGroupMember -Identity ******@mydomain.com -Member $_.Names -BypassSecurityGroupManagerCheck}

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.


Answer accepted by question author

Andy David - MVP 160.3K Reputation points MVP Volunteer Moderator
2022-04-30T14:52:19.56+00:00

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

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.