ISSUE: Exchange log error 'The term 'Connect-ExchangeOnline' is not recognized as the name of a cmdlet, function, script file, or operable program.'
Last modified:
Overview
When reviewing the exchange module logs, the error below occurs:
EXCEPTION: System.Management.Automation.CommandNotFoundException: The term 'Connect-ExchangeOnline' 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.
Cause
This happens when the command Install-Module -Name ExchangeOnlineManagement is executed using Powershell ISE and not a Powershell command.
Solution
Open a Powershell command under the context of administrator and execute the command below:
Install-Module -Name ExchangeOnlineManagement
Restart the Remad.Exchange service and confirm the error is no longer present.