Repair-SPSite

After testing a site collection, if repairs need to be made, you can use the Repair-SPSite cmdlet, which has similar parameters as the Test-SPSite cmdlet.

Repair-SPSite -Identity <URL or GUID of Site Collection> [-RuleId<rule GUID>] [-RunAlways <optional switch parameter>]

Get PowerShell™ for SharePoint® 2013 How-To 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.