by lunarg on December 19th 2017, at 08:58

If you are using multi-factor authentication, it is not possible to use the old method of connecting to Exchange Online. You will have to install the Exchange Online Remote PowerShell Module, and use the Connect-EXOPSSession cmdlet to connect.


You can install the PowerShell module by following these instructions:

  1. Log on to Exchange admin center.
  2. In the left menu, click on hybrid.
  3. Click the configure button for the Exchange Online Remote PowerShell Module. This will start the installation.
  4. In the Application Install that appears, click the Install button.

A shortcut will be placed on your desktop which will start PowerShell with the required modules.


Start Exchange Online Remote PowerShell Module (Microsoft Corporation → Microsoft Exchange Online Remote PowerShell Module).

Use the cmdlet Connect-EXOPSSession and your Office 365 account (your username, in UPN-format) to connect to Exchange Online:

Connect-EXOPSSession -UserPrincipalName

You will be prompted for your credentials. If MFA is enabled, the request to validate your login will appear as well.

After successfully logging on, you will be able to run PowerShell cmdlets like before.

« January 2018»
« I needed a password with eight characters so I picked Snow White and the Seven Dwarves. »