Get-PnPHealthScore

Retrieves the healthscore of the site given in his Url parameter or from the current connection if the Url parameter is not provided

Description

Retrieves the current X-SharePointHealthScore value of the server, or CPU, on which your SharePoint instance runs. X-SharePointHealthScore is a value between 0 and 10, where 0 indicates the server is idle and 10 indicates the server is very busy. For more information visit https://docs.microsoft.com/office365/enterprise/diagnosing-performance-issues-with-sharepoint-online and https://docs.microsoft.com/openspecs/sharepoint_protocols/ms-wsshp/c60ddeb6-4113-4a73-9e97-26b5c3907d33.

Examples

------------------EXAMPLE 1------------------

Get-PnPHealthScore

This will retrieve the current health score of the server.

------------------EXAMPLE 2------------------

Get-PnPHealthScore -Url https://contoso.sharepoint.com

This will retrieve the current health score for the url https://contoso.sharepoint.com.

Outputs

System.Int32

Returns a int value representing the current health score value of the server.