Export (0) Print
Expand All

Test-SPOSite

 

Applies to: SharePoint Online, Office 365

Topic Last Modified: 2013-12-18

Tests a SharePoint Online site collection.

Test-SPOSite [-Identity] <SpoSitePipeBind> [-RuleId <Guid>] [-RunAlways <SwitchParameter>]

The Test-SPOSite cmdlet runs one or all site collection health checks on the site collection and its contents. Tests are intended not to make any changes except in repair mode, which can be initiated by running the Repair-SPOSite cmdlet. This cmdlet reports the rules together with a summary of the results.

You must be a SharePoint Online global administrator to run the Test-SPOSite cmdlet.

 

Parameter Required Type Description

Identity

Required

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Specifies the SharePoint Online site collection to test.

RuleId

Optional

System.Guid

Specifies the health check rule to run.

RunAlways

Optional

System.Management.Automation.SwitchParameter

Displays a message that states the effect of the command instead of executing the command.

--------------EXAMPLE ------------

Test-SPOSite https://contoso.sharepoint.com/sites/marketing

This example runs all the site collection health checks on the https://contoso.sharepoint.com/sites/marketing site collection.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft