Fix SharePoint Online PowerShell 500 Internal Server Error
Question details
Find out why SharePoint Online PowerShell connections return a 500 Internal Server Error and how to get help.

- Product
- SharePoint Online PowerShell
- Device & OS
- not provided
- Scenario
- An administrator is connecting to SharePoint Online and its administration site using Connect-PnPOnline or Connect-SPOService.
- Observed behavior
- Both connection commands return a 500 Internal Server Error, including when using a Global Administrator account.
Confirm which SharePoint Online URLs and PowerShell commands produce the error, and record when it occurred. Have access to the Microsoft 365 admin center with permission to view service health.
Check SharePoint Online service health
Use this first to determine whether a Microsoft service incident may be causing the connection errors.
Sign in to the Microsoft 365 admin center at admin.microsoft.com with an account that can view service health.
Go to Health > Service health and select SharePoint Online. Review active incidents and advisories for connection or authentication issues.
If an incident matches the symptoms, open it for status updates and retry Connect-PnPOnline or Connect-SPOService after Microsoft reports that the issue is resolved.

Contact Microsoft Support if the error continues
Use this when no matching incident is listed or connections still fail after a reported incident is resolved.
Work with Office documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Office documents. Open supported files from your device to make the transition easier; WPS Office does not fix SharePoint Online PowerShell connections.

Frequently Asked Questions
Where can I check whether SharePoint Online is experiencing an outage?
In the Microsoft 365 admin center, go to Health > Service health and select SharePoint Online to review active incidents and advisories.
Does a Global Administrator account rule out a service-side problem?
No. A 500 Internal Server Error can occur during a service incident even when the connection is attempted with a Global Administrator account. Check SharePoint Online service health first.
What should I send Microsoft Support about the PowerShell errors?
Use Help & support in the Microsoft 365 admin center to submit the affected URLs, command names, error text, timestamps, and any correlation IDs. Share tenant details privately and exclude passwords and tokens.
Is incident SP146217 currently causing my connection error?
SP146217 is a historical incident associated with PowerShell connections using a custom client-side object model application. Check the current SharePoint Online service health page for active incidents rather than assuming it is still active.




