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:
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:
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.
Tag: The term ‘Add-DistributionGroupMember’ is not recognized