Hi Everyone this is Prem, I have worked as M365 Support Ambassador. In this blog I will share How to fix The term ‘Set-Mailbox’ is not recognized as the name of a cmdlet Error when running command in powershell.
Error can occurs when you try to run an Exchange Online command in PowerShell without first connecting it to Exchange Online.
In order to fix this error we should first connect the PowerShell to exchange online and then run the needed command.
Steps to fix The term ‘Set-Mailbox’ is not recognized as the name of a cmdlet Error:
Search for Windows PowerShell on the computer and then run it as an administrator: