Commands › SharePoint Online

Restore-SPODeletedContainer

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

Recovers a deleted Container from the Recycle Bin.

Quick start script

# Restore-SPODeletedContainer — 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-SPODeletedContainer -Identity <SPOContainerPipeBind> | Format-List

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

Syntax

Restore-SPODeletedContainer [-Identity] <SPOContainerPipeBind> [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-Identity SPOContainerPipeBind yes Use this parameter to specify the `ContainerId` of the deleted container to be restored.

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