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 Exchange Server Management
Windows for business Windows Server User experience PowerShell
{count} votes

1 answer

Sort by: Most helpful
  1. Jarvis Sun-MSFT 10,231 Reputation points Microsoft External Staff
    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.


Your answer

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