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

In this blog I will share How to Fix The term ‘Get-InboxRule’ is not recognized as the name of a cmdlet, function, script file, or operable program error.

The term 'Get-InboxRule' is not recognized

This cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings may be exclusive to one environment or the other.


Depending on the environment you can have different fix for this error.


If your mailbox on which you are trying to run this command is on local Exchange, then open Exchange management Shell on the windows server which has Exchange running and check the behaviour by running the Get-InboxRule command.


For mailbox in Exchange Online, this error occurs when the PowerShell on which we are running the Get-InboxRule command is not connected to Exchange Online.


Steps to Fix The term ‘Get-InboxRule’ is not recognized as the name of a cmdlet, function, script file, or operable program

Use the PowerShell which is connected to Exchange online, refer: connect PowerShell to Exchange online using this detailed article.


You should be able to run the Get-InboxRule command after connecting the PowerShell to the Exchange online.


Below is the syntax of the Get-InboxRule command which can be used when running the command depending on the need:

Get-InboxRule
[-Identity]
[-BypassScopeCheck]
[-DescriptionTimeFormat ]
[-DescriptionTimeZone ]
[-DomainController ]
[-IncludeHidden]
[-Mailbox ]
[-SweepRules]

 

Example for the above command:

Get-InboxRule -Mailbox Prem@theadmin365.com

Above “Prem@theadmin365.com” is the email address of the user mailbox of which I want to retrieve inbox rules of.

 

For more detail about the command Get-InboxRule, refer Microsoft Official article.


Do let me know if you have any question in the comment box below.


Date:07/06/2023

Author: Prem

Tag: Get-InboxRule : The term ‘Get-InboxRule’ is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Leave a Comment

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