The term ‘Get-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 Get-Distributiongroupmember not Recognized error.

 

This error occurs when we run the command in the Windows PowerShell which is not connected to exchange online.

 

If its not connected correctly you will get error like this:

Get-Distributiongroupmember not Recognized

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

 

Once connected, you should be able to run the Get-Distributiongroupmember command.

 

Below is the syntax of the command:

 

Get-DistributionGroupMember
[-Identity]
[-Credential ]
[-DomainController ]
[-IgnoreDefaultScope]
[-IncludeSoftDeletedObjects]
[-ReadFromDomainController]
[-ResultSize ]

 

Example for the above command:

 

Get-DistributionGroupMember -Identity “Group Name”

 

Above “Group Name” is the name of the group of which we want to get the members list.

 

To know more about the command Get-Distributiongroupmember, refer Microsoft Official article.

 

Do let me know if you have any question.

Date:18/05/2023

Author: Prem

Tag: Get-Distributiongroupmember not Recognized

Leave a Comment

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