Last week, suddenly My Global Administrator account stopped connecting to Exchange Online management Shell.
Below is the error that I received, that says access denied.
I have checked RemotePowerShellEnabled is True for my account, nothing has changed.
I researched and found that Microsoft has pushed a conditional access policy for below office 365 admin roles that might be causing it.
- Global administrator
- SharePoint administrator
- Exchange administrator
- Conditional access administrator
- Security administrator
This was not the case for our tenant as we have already disabled that policy.
I worked with Microsoft Office 365 team but found no resolution but to use the MFA shell, I am still searching why my account is not working while for other administrator is working fine.
As of now I am using the MFA Exchange online Shell as a workaround.(below is the link)
Connect-EXOPSSession -UserPrincipalName firstname.lastname@example.org (this will launch the modern authentication)
In my next post, I will merge this as a function to my All in one office 365 Powershell connect to make it usable as a part of powershell profile.
Thanks for reading
3 thoughts on “Exchange Online Multi Factor Authentication Shell”
Pingback: All in One Office 365 Powershell Connect – Includes Exchange online MFA |
Pingback: Exchange Online Multi Factor Authentication Shell | Cloud Computers Guide
Pingback: All in One Office 365 Powershell Connect – Includes Exchange online MFA | Tech Wizard