Others

Fix SharePoint Online PowerShell 500 Internal Server Error

Steven ParkerSteven Parker Nov 20, 2026 868 views

Question details

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

Fix SharePoint Online PowerShell 500 Internal Server Error
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.
Before you start

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.

Solution 1Recommended

Check SharePoint Online service health

Use this first to determine whether a Microsoft service incident may be causing the connection errors.

1
Open the admin center

Sign in to the Microsoft 365 admin center at admin.microsoft.com with an account that can view service health.

2
Review service health

Go to Health > Service health and select SharePoint Online. Review active incidents and advisories for connection or authentication issues.

3
Follow the incident updates

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.

Check SharePoint Online service health
Historical incident: Incident SP146217 previously affected PowerShell connections using a custom client-side object model application. Its presence in the historical record does not mean it is active now.
Free Microsoft Office alternative

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.

Edit documents, spreadsheets, and presentations in a familiar interfaceCompatible with Microsoft Office formats including DOCX, XLSX, and PPTXOpen supported files downloaded from SharePoint for local editingFree and lightweight for everyday Office tasks
microsoft office alternative - wps office

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.