Connect-ExchangeOnline Error using AccessToken

John P 0 Reputation points
2024-05-08T07:21:20.33+00:00

Im trying to connect using Connect-ExchangeOnline -DelegatedOrganization $upnDomain -AccessToken $accessToken -UserPrincipalName $upn -ShowProgress $false

But for few tenants getting below error. Please help

Unexpected character encountered while parsing value: F. Path '', line 1, position 1

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,132 questions
{count} votes