The Term ‘Connect-ExchangeOnline’ is Not Recognized

Connect-ExchangeOnline

You may receive the following error message when trying to connect to Exchange Online with PowerShell:

PS C:\> Connect-ExchangeOnline Connect-ExchangeOnline: The term 'Connect-ExchangeOnline' is not recognized as a name of a cmdlet, function, script file, or executable 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 the ExchangeOnline PowerShell module is missing from your system.

Fortunately you can fix this easily by running the following PowerShell command:

Import-Module ExchangeOnline

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:

PS C:\> Connect-ExchangeOnline ---------------------------------------------------------------------------- The module allows access to all existing remote PowerShell (V1) cmdlets in addition to the 9 new, faster, and more reliable cmdlets. |--------------------------------------------------------------------------| | Old Cmdlets | New/Reliable/Faster Cmdlets | |--------------------------------------------------------------------------| | Get-CASMailbox | Get-EXOCASMailbox | | Get-Mailbox | Get-EXOMailbox | | Get-MailboxFolderPermission | Get-EXOMailboxFolderPermission | | Get-MailboxFolderStatistics | Get-EXOMailboxFolderStatistics | | Get-MailboxPermission | Get-EXOMailboxPermission | | Get-MailboxStatistics | Get-EXOMailboxStatistics | | Get-MobileDeviceStatistics | Get-EXOMobileDeviceStatistics | | Get-Recipient | Get-EXORecipient | | Get-RecipientPermission | Get-EXORecipientPermission | |--------------------------------------------------------------------------| To get additional information, run: Get-Help Connect-ExchangeOnline or check https://aka.ms/exops-docs Send your product improvement suggestions and feedback to exocmdletpreview@service.microsoft.com. For issues related to the module, contact Microsoft support. Don't use the feedback alias for problems or support issues. ---------------------------------------------------------------------------- PS C:\>

If you’re still having problems installing the ExchangeOnline module or running commands from the module, please refer to the following article:

MSOnline Module – Installation and Troubleshooting

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.

Did you like this post? Maybe your friends will too!