Connect-ZtAssessment calls Connect-SPOService -Url $adminUrl and Connect-SPOService defaults to legacy authentication. The -UseSystemBrowser $true parameter switches the module to use MSAL and opens the system browser for sign-in, which supports the full Entra authentication experience including phishing-resistant methods.
Relevant links
- https://learn.microsoft.com/en-us/powershell/module/microsoft.online.sharepoint.powershell/connect-sposervice?view=sharepoint-ps
- https://learn.microsoft.com/en-us/troubleshoot/sharepoint/administration/connect-sposervice-error
Connect-ZtAssessmentcallsConnect-SPOService -Url $adminUrlandConnect-SPOServicedefaults to legacy authentication. The-UseSystemBrowser $trueparameter switches the module to use MSAL and opens the system browser for sign-in, which supports the full Entra authentication experience including phishing-resistant methods.Relevant links