Add Members To Mail Enabled Security Group Powershell

How To Add Members To Mail Enabled Security Group Powershell?

A mail-enabled security group is widely used to distribute messages and granting permissions to resources in Active Directory. You can add members to mail enabled security group PowerShell by following the steps below.

On your computer, log in to Exchange Online using your Microsoft account Open Exchange Online PowerShell to use the Add-DisbtributionGroupMember cmdlet. This cmdlet allows you to add a recipient to distribution groups and mail-enabled security groups. Some parameters for the cmdlet may not have access if the permissions required to run the Exchange cmdlet are not assigned to you.

To add the recipient to the mail-enabled security group, copy and paste the below-mentioned commands to your PowerShell window.

Reset Your Password

  • Step 1: Add-DistributionGroupMember
  • Step 2: [-Identity]
  • Step 3: [-BypassSecurityGroupManagerCheck]
  • Step 4: [-Confirm]
  • Step 5: [-DomainController ]
  • Step 6: [-Member ]
  • Step 7: [-WhatIf]

For example, we have given a sample command below to add a distribution group member using PowerShell.

Add-DistributionGroupMember -Identity "Staff" -Member ""

This command adds the user to the distribution group named staff.

To know more about the parameters used in the cmdlet for adding group members to the mail-enabled security group, keep reading.


The -BypassSecurityGroupManagerCheck switch determines whether to allow a user who isn’t an owner of the group.


The Confirm switch determines whether to show or hide the confirmation prompt. For example, when a destructive cmdlet prompts for confirmation, you can skip using the syntax -Confirm:$false.


This parameter specifies the domain controller used by the cmdlet for reading/writing data from Active Directory. The Domaincontroller parameter is available only in the on-premises Exchange.


This parameter specifies the group you wish to change. You can modify the following values that are required to identify the group.

  • Step 1: Name
  • Step 2: Alias
  • Step 3: Distinguished name (DN)
  • Step 4: Canonical DN
  • Step 5: Email address
  • Step 6: GUID


This parameter specifies the recipient you are adding to the group. You can use any value that identifies the recipient.


The WhatIf parameter is used to specify the actions of the command. Using this switch, you can check out the changes that occur without applying those changes. If you need remote assistance to add members to mail enabled security group PowerShell, call us.

Related Searches

How To Encrypt Email?

How To Encrypt Email?

In order to prevent third parties from reading your mail content, email encryption is done, which is basically digitizing the information within. 

How To Stop Spam Emails?

How To Stop Spam Emails?

There are not many ways to prevent spam from piling up in your Inbox. Here’s how you can filter out most of them.

Fix AT&T Email Error

Fix AT&T Email Error 0x800CCC0F

AT&T Email error 0x800CCC0F occurs when mails are not being sent or received through AT&T services. Due to the technical glitches causing it, many email functions are disabled. The computer’s Operating System might get frozen.

How To Delete All Emails In Gmail?

How To Delete All Emails In Gmail?

Open the Gmail app.Select the inbox tab you want to delete.You’ll find the Empty Box button over the Compose button.