Redigera

Dela via


Restore-SPODeletedSite

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

Syntax

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

Description

You must be at least a SharePoint administrator to run the cmdlet.

For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at Intro to SharePoint Online Management Shell.

Examples

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

Restore-SPODeletedSite -Identity https://contoso.sharepoint.com/sites/arecycledsite

This example restores a SharePoint Online deleted site collection named "https://contoso.sharepoint.com/sites/arecycledsite" from the Recycle Bin.

Parameters

-Identity

Specifies the URL of the site collection to restore.

Type:SpoSitePipeBind
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Online

-NoWait

Specifies to continue executing script immediately.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online