The term ‘Add-DistributionGroupMember’ is not recognized as the name of a cmdlet, function, script file, or operable program

Hi Everyone this is Prem, I have worked as Microsoft 365 support ambassador. In this blog I will share How to Fix The term ‘Add-DistributionGroupMember’ is not recognized as the name of a cmdlet, function, script file, or operable program error.

 

If your distribution group is in Exchange online and you run the command in the Windows PowerShell which is not connected to exchange online then the error occurs.

 

You can receive the following error in the Windows PowerShell when you try to run the command:

The term 'Add-DistributionGroupMember' is not recognized

To fix The term ‘Add-DistributionGroupMember’ is not recognized error follow the steps:

If the group is located in Exchange online then Open your windows PowerShell as an Administrator on your computer and connect it to Exchange online using this article.

 

Once connected without error, you should be able to run the command.

 

Below is the syntax of the command:

Add-DistributionGroupMember
[-Identity]
[-BypassSecurityGroupManagerCheck]
[-Confirm]
[-DomainController ]
[-Member ]
[-WhatIf]

 

Below is Example for the above command:

 

Add-DistributionGroupMember -Identity "mavericks" -Member "Prem@theadmin365.com"

This example adds Prem@theadmin365.com to the distribution group named Mavericks.

 

To know more about the command Add-DistributionGroupMember, refer Official Microsoft Post.

 

If you have any question, do let me know in the comment section below.

 

Date:18/05/2023

Author: Prem

Tag: The term ‘Add-DistributionGroupMember’ is not recognized

Leave a Comment

Your email address will not be published. Required fields are marked *