The Term ‘Connect-ExchangeOnline’ is Not Recognized


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 below 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
Send your product improvement suggestions and feedback to
For issues related to the module, contact Microsoft support.
Don't use the feedback alias for problems or support issues.
PS C:\>

For advanced troubleshooting of the ExchangeOnline module or running commands from the module, please read this article.

How to Manage Office 365 Mailboxes From AD

Many admins are frustrated that you need PowerShell to configure calendar delegation, Outlook automapping, and more.

With Easy365Manager, all daily Office 365 mailbox operations are available in AD Users & Computers.

Easy365Manager is a small snap-in to AD Users & Computers that enables two new tabs in user properties:

Easy365Manager Office 365 user properties
User properties, "Office 365" tab
Exchange Online Mailbox properties in AD Users & Computers
User properties, "Mailbox" tab

The functionality in these two new tabs allow you to configure advanced Office 365 mailbox settings like calendar delegation (that is otherwise only possible via complex PowerShell scripting):

Easy365Manager provides the following benefits compared to standard management tools:

  • You can work from a single familiar interface (AD Users & Computers) instead of using a mixed bag of web consoles and PowerShell.
  • You don’t need to worry about attribute authority (you manage everything in one place).
  • Junior admins can manage hybrid Office 365 with zero learning curve.
  • You can remove your on-premises Exchange Server (save time and money and have a reduced attack surface).

Read about the many features here.

Download your fully functional 30-day trial version here.