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

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Security\TrustManager\PromptingLevel]
"MyComputer"="Enabled"
"LocalIntranet"="Disabled"
"Internet"="Enabled"
"TrustedSites"="Enabled"
"UntrustedSites"="Enabled"

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

https://cmdletpswmodule.blob.core.windows.net/exopsmodule/Microsoft.Online.CSE.PSModule.Client.application

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

Connect-EXOPSSession -UserPrincipalName myusername@domain.com

Kommentarer

Populære opslag 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