Adding multiple contact lists to a distribution list using PowerShell

IT 140 Reputation points
2023-11-25T15:46:02.2966667+00:00

I have created ten mail contacts for parents of Year 7 and I created a distribution list so the admin can send announcements to the DL.

I need help adding these contact lists to the DL using PowerShell command.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,479 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,448 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jarvis Sun-MSFT 10,181 Reputation points Microsoft Vendor
    2023-11-27T05:52:40.92+00:00

    Hi @IT,

    welcome to our Q&A forum!

    To add the mail contacts to the distribution list using PowerShell, you can use the Add-DistributionGroupMember cmdlet. Here’s an example command that you can use:

    Add-DistributionGroupMember -Identity "DistributionListName" -Member "Contact1", "Contact2", "Contact3"
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.