You may receive the following error message when trying to configure Easy365Manager to connect with Office 365:
Connect-MsolService : The term 'Connect-MsolService' 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.
This indicates that Easy365Manager is not able to use the MSOnline module for PowerShell.
Fix this by running the Easy365Manager .msi installation file and select repair. If this doesn’t solve it follow the below steps to investigate it further:
First try to see if you’re able to successfully connect to MSOnline using the MSOnline module for PowerShell (use an elevated 64 bit PowerShell prompt):
- # Install the MSOnline module if this is first use
- Install-Module MSOnline
- # Add the MSOnline module to the PowerShell session
- Import-Module MSOnline
- # Get credentials of Azure admin
- $Credentials = Get-Credential
- # Connect to Azure AD
- Connect-MsolService -Credential $Credentials
If any of the above steps fails you should make sure PowerShell version 5.1 (or later) is installed. This article has detailed instructions on how to check your PowerShell version and how to install PowerShell version 5.1 if it’s missing.
If the Install-Module MSOnline command fails, refer to this article for a solution.
If you suspect the MSOnline module is present but broken, remove it entirely (all versions) by deleting the below folders from your system:
- %userprofile%\Documents\WindowsPowerShell\MSOnline
- %programfiles%\WindowsPowerShell\Modules\MSOnline
Make sure to replace “Documents” with the localized name if running a language pack on Windows. Also, make sure to remove any file locks by closing down any open PowerShell sessions.
After deleting the folders run the above PowerShell script again to install the MSOnline module.
If any of this doesn’t solve the problem please refer to our more extensive troubleshooting guide on the MSOnline module.
Alternatively visit Microsoft Support or contact our helpdesk.