You may receive the following error message when trying to connect to Exchange Online with PowerShell:
This indicates that the ExchangeOnline PowerShell module is missing from your system.
Fortunately you can fix this easily by running the following PowerShell command:
This command automatically connects to the PowerShell gallery and downloads the latest version of the ExchangeOnline module.
Once the download completes you’re ready to connect to your Exchange Online. This should now result in the following pretty output:
If you’re still having problems installing the ExchangeOnline module or running commands from the module, please refer to the following article:
Although the topic is concerning another module, all the detailed troubleshooting steps will help you successfully install and run the ExchangeOnline module.
To read more about the improvements and benefits of the new ExchangeOnline module have a look at this article.