PowerShell: Getting AADSTS500014 error while trying to connect to Exchange Online
$admin="admin@M365x121212.onmicrosoft.com"
$adminPassword="xxxxxxxxxxx"
$cred = [Management.Automation.PSCredential]::new($admin, $(ConvertTo-SecureString -Force -AsPlainText -String $adminPassword))
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -Credential $cred -ShowProgress $true
New-ExoPSSession: AADSTS500014: The service principal for resource 'https://outlook.office365.com' is disabled. This indicate that a subscription within the tenant has lapsed, or that the administrator for this tenant has disabled the application, preventing tokens from being issued for it.
to resolve AADSTS500014 error:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.