Forum Discussion
Ladislav Zvada
Aug 22, 2017Copper Contributor
Connect-SPOService : Could not authenticate to SharePoint Online
Hi I am unable to connect to SPO from SharePoint online management shell (6802.1200) using my federated account (no MFA set). I am executing command: Connect-SPOService -Url https://TENANTNAME-admi...
ChrisWalljasper
Feb 05, 2020Copper Contributor
I'm having the opposite issue, but I was getting this error after a recent registry edit I made while trying to bypass modern authentication for a script. Here is the related article I found and the registry key I created which causes this error, you might want to check for this key:
[HKEY_CURRENT_USER\Software\Microsoft\SPO\CMDLETS]
"ForceOAuth" = dword:00000001
https://docs.microsoft.com/en-us/sharepoint/troubleshoot/security/cannot-force-modern-authentication
- Michael_PikolonJun 21, 2021Copper ContributorThis worked for me! (after a restart)