Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Restore-SPODeletedSite

Restore-SPODeletedSite

microsoft.online.sharepoint.powershell-1.dll, microsoft.online.sharepoint.powershell.dll

Synopsis

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

Syntax

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

Detailed Description

You must be a SharePoint Online global administrator and a site collection administrator to run the cmdlet.

For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at http://go.microsoft.com/fwlink/p/?LinkId=251832 (http://go.microsoft.com/fwlink/p/?LinkId=251832).

Parameters

-Identity <SpoSitePipeBind>

Specifies the URL of the site collection to restore.

Aliases

None

Required?

True

Position

1

Default value

Accept pipeline input?

True

Accept wildcard characters?

False

-NoWait <SwitchParameter>

Specifies to continue executing script immediately.

Aliases

None

Required?

False

Position

Named

Default value

Accept pipeline input?

False

Accept wildcard characters?

False

Input Type

Return Type

Notes

None

Examples

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

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

C:\PS>Restore-SPODeletedSite -Identity https://contoso.sharepoint.com/sites/arecycledsite

Introduction to the SharePoint Online management shell
Set up the SharePoint Online Management Shell Windows PowerShell environment
Get-SPODeletedSite
Remove-SPODeletedSite