Connect-SPOService with a Passwordless Admin


General Introduction

If you have got a passwordless admin account and then tried to connect to the SharePoint Online Management Shell (Connect-SPOService -Url https://yourtenant-admin.sharepoint.com) you’ve probably met an issue. The login prompt pops up, but it’s the old one, and you cannot use passkeys. It supports just the classic “password + MFA”.


The Fix

Connect-SPOService -Url https://yourtenant-admin.sharepoint.com -UseSystemBrowser $true


Instead of the embedded browser, this tells the module to open your system’s default browser (Edge, Chrome, whatever you’ve got) where your FIDO2 key, Windows Hello, or Authenticator passkey works exactly as it does everywhere else.

Note: Make sure you are running the latest version of the SharePoint Online Management Shell. You can update it with:

Update-Module -Name Microsoft.Online.SharePoint.PowerShell