Saturday, June 12, 2021

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 the 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 "username@domain.com"

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.

No comments:

Post a Comment

How To Link AOL Email To Gmail?

When you link AOL email to Gmail , you can enjoy the features of Gmail in your AOL account itself. For a detailed guide, refer to the simple...