Restore-SPODeletedSite
Restores a SharePoint Online deleted site collection from the Recycle Bin.
Restore-SPODeletedSite
-Identity <SpoSitePipeBind>
[-NoWait]
[<CommonParameters>]
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.
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.
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 |
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 |