How To Create A Distribution Group In Exchange 2016 Powershell

How To Articles

Hello readers!

Today, I want to share with you my experience of creating a distribution group in Exchange 2016 PowerShell. As a technical enthusiast, I have found PowerShell to be a powerful tool for managing Exchange servers and automating administrative tasks. In this article, I will guide you through the step-by-step process of creating a distribution group using PowerShell, and provide personal insights and commentary along the way.

What is a Distribution Group?

Before we dive into the technical details, let’s quickly understand what a distribution group is. In Exchange, a distribution group is a collection of email addresses that can be used to send emails to multiple recipients simultaneously. It is commonly used to streamline communication and simplify the process of sending emails to a specific group of people.

Getting Started

To begin, you should open PowerShell on your Exchange 2016 server. Make sure you have the necessary administrative privileges to create distribution groups.

Once you have PowerShell open, you can connect to your Exchange server by running the following command:

Connect-ExchangeServer -Server servername

Replace servername with the name of your Exchange server.

Creating a New Distribution Group

Now that we are connected to the Exchange server, we can proceed with creating a new distribution group. In PowerShell, the cmdlet used for this task is New-DistributionGroup. Let’s break down the syntax:

New-DistributionGroup -Name groupname -Alias alias -OrganizationalUnit OU -SamAccountName samaccountname

Here’s what each parameter represents:

  • -Name: Specify the display name for the distribution group.
  • -Alias: Provide an alias for the distribution group.
  • -OrganizationalUnit: Specify the Organizational Unit (OU) where you want the distribution group to be created.
  • -SamAccountName: Set the SamAccountName for the distribution group.

Feel free to customize these parameters based on your specific requirements and naming conventions.

For example, let’s say you want to create a distribution group called “Marketing” with the alias “marketinggrp” in the “Sales” Organizational Unit:

New-DistributionGroup -Name "Marketing" -Alias "marketinggrp" -OrganizationalUnit "Sales" -SamAccountName "marketinggrp"

Once you run the command, PowerShell will create the distribution group with the specified parameters.

Adding Members to the Distribution Group

No distribution group is complete without members. To add members to the newly created distribution group, we can use the Add-DistributionGroupMember cmdlet. Here’s the syntax:

Add-DistributionGroupMember -Identity groupname -Member membername

Replace groupname with the name of the distribution group, and membername with the name of the user you want to add as a member.

For example, if you want to add a user named “John Smith” to the “Marketing” distribution group, you would run the following command:

Add-DistributionGroupMember -Identity "Marketing" -Member "John Smith"

By running this command, you will successfully add John Smith as a member of the Marketing distribution group.


Congratulations! You have learned how to create a distribution group in Exchange 2016 PowerShell. By leveraging the power of PowerShell, you can automate the process of creating and managing distribution groups, saving time and effort.

PowerShell is a valuable tool for Exchange administrators, allowing them to perform complex tasks with ease. I hope this article has provided you with a comprehensive guide to creating a distribution group using PowerShell, along with my personal insights and commentary.

Happy scripting!