Backtrack:  
 
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.

Installation

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.

Usage

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 username@mydomain.com

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»
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031   
 
Links
 
Quote
« I needed a password with eight characters so I picked Snow White and the Seven Dwarves. »