Export (0) Print
Expand All

Test-SPOSite

Published: July 16, 2012

Applies to:  Office 365 | SharePoint Online 

Tests a SharePoint Online site collection.

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

Parameters

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.

Detailed Description

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.

Input Types

Return Types

--------------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.

Change History

Date Description

July 16, 2012

Initial publication

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