Commands › SharePoint Online

Restore-SPODeletedSite

SharePoint Online Microsoft.Online.SharePoint.PowerShell Restore-*

Restores a SharePoint Online deleted site collection from the Recycle Bin.

Quick start script

# Restore-SPODeletedSite — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Run and inspect
Restore-SPODeletedSite -Identity <SpoSitePipeBind> | Format-List

# 3. Export for evidence / drift tracking
Restore-SPODeletedSite | Export-Clixml .\SPODeletedSite-$(Get-Date -Format yyyyMMdd).xml

Syntax

Restore-SPODeletedSite -Identity <SpoSitePipeBind> [-NoWait] [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Identity SpoSitePipeBind yes Specifies the URL of the site collection to restore.
-NoWait SwitchParameter Specifies to continue executing script immediately.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.