Creating a dynamic distribution group

Creating a dynamic distribution group

Distribution groups play an important role in organizations that run Microsoft Exchange. Creation and modification/management of these groups can either be done using the Exchange Admin Center or using PowerShell if you are more comfortable with the latter.
 
In this article, we will take a look at how you can create a dynamic distribution group. This is a simple process, and it can be done using the New-DynamicDistributionGroup cmdlet. The following script will let you create a dynamic distribution group that contains mailbox users only from the user's OU:
 
  1. PS> New-DynamicDistributionGroup -IncludedRecipients MailboxUsers -Name MailboxUsersDDG -OrganizationalUnit Users


    • Related Articles

    • PowerShell for AD group reports

      Real-time insights on group membership, type, and scope can help Active Directory (AD) administrators manage group objects better. Many administrators use Microsoft's PowerShell technology to run basic queries and pull detailed information. Below are ...
    • PowerShell as an AD group management tool

      Group management can be quite a challenge for Active Directory (AD) administrators day in, day out. Many administrators use Microsoft's PowerShell technology to perform basic AD user management tasks. Below are some key PowerShell scripts and ...
    • Creating a custom object in Active Directory

      There may be instances where the objects available in an Active Directory (AD) schema do not suit your organization's requirements. In this case, you can create a custom AD object that suits your organization's needs. This task can be done easily ...
    • Monitoring Active Directory Group Membership Changes

      For security reasons, users in an Active Directory (AD) network would be put in groups, and they will be granted or denied certain privileges according to the groups they belong to. This is done so that users do not have unnecessary access to ...
    • How to create and manage Microsoft 365 groups with PowerShell

      Introduction: Microsoft 365 Groups is a collaboration feature that allows users to work together and share resources such as calendars, files, and email messages. Microsoft 365 Groups can be created and managed using the Microsoft 365 admin center, ...