Access Exchange online with Office 365 multi-factor authentication (MFA/2FA)

I've been having some trouble doing Exchange PowerShell after enabling Office 365 MFA on my account. I did this to gain access from my computer.

1) First save this to a .reg file (e.g. fix.reg) and run it to allow installing the Exchange Online Remote PowerShell Module on your computer from Internet Explorer:

Windows Registry Editor Version 5.00


2) Then paste this URL in Internet Explorer to install the module:

3) Now run this command to connect (remember to modify the UserPrincipalName to match your own username):

Connect-EXOPSSession -UserPrincipalName


Populære indlæg fra denne blog

Microsoft Office 2016 and the AUTO_ACTIVATE property

Disable logon and logoff events (event id 4624, 4625, 4634 (and all the other ones...))

Enable OpenELEC SSH login with keys, and without password, disable local SSH password