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

Hi Everyone this is Prem, I have worked as M365 Support Ambassador. In this blog I will share How to Fix The term ‘Get-Mailbox’ is not recognized as the name of a cmdlet, function, script file, or operable program Error when using PowerShell.

 

 

This Error occurs when we try to run an Exchange command in PowerShell without connecting it to Exchange Online.

 

 

To fix this error we will first have to connect the PowerShell to exchange online and then run the required command.

 

 

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

 

Search for windows PowerShell and then run it as an administrator: