Cuban's Bullspit

Take it or leave it!

SharePoint Health

PowerShell Script: Get-SPHealthScore

The Get-SPHealthScore power shell commandlet is a simple commandlet that will query the value of the health score for any SharePoint 2010 URL (providing the header hasn’t been removed for security reasons which I will discuss in a later post). function Get-SPHealthScore([string]$url) { $request = [System.Net.WebRequest]::Create($url) $request.Method = “HEAD” $response = $request.GetResponse() if(($score = $response.Headers.Get(“X-SharePointHealthScore”)) [...]

, , , ,