Testing site health

As an administrator, you will be faced with troubleshooting a broken site. Often, changes and customizations by developers or administrators lead to problems that may not be evident immediately. Often, issues are not addressed until a breaking change is found during an upgrade. The first of the tools at our disposal to help us in troubleshooting is the Test-SPOSite command.

The command allows you to check several rules against your site collection, producing a report that will help you to take action. By default, the command will return a result with an array of all the rules tested and individual results:

Test-SPOSite -Identity $siteUrlSiteUrl : https://mytest321.sharepoint.com/sites/testA1Results : { SPSiteHealthResult ...

Get PowerShell for Office 365 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.