external help file | applicable | schema |
---|---|---|
SharePoint Online |
2.0.0 |
Restores a site collection from the tenant scoped recycle bin
Restore-PnPTenantRecycleBinItem -Url <String>
[-Wait [<SwitchParameter>]]
[-Force [<SwitchParameter>]]
[-Connection <SPOnlineConnection>]
The Reset-PnPTenantRecycleBinItem cmdlet allows a site collection that has been deleted and still exists in the tenant recycle bin to be restored to its original location.
PS:> Reset-PnPTenantRecycleBinItem -Url https://tenant.sharepoint.com/sites/contoso
This will restore the deleted site collection with the url 'https://tenant.sharepoint.com/sites/contoso' to its original location
PS:> Reset-PnPTenantRecycleBinItem -Url https://tenant.sharepoint.com/sites/contoso -Wait
This will restore the deleted site collection with the url 'https://tenant.sharepoint.com/sites/contoso' to its original location and will wait with executing further PowerShell commands until the site collection restore has completed
If provided, no confirmation will be asked to restore the site collection from the tenant recycle bin
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Url of the site collection to restore from the tenant recycle bin
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: False
If provided, the PowerShell execution will halt until the site restore process has completed
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Optional connection to be used by cmdlet. Retrieve the value for this parameter by eiter specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: SPOnlineConnection
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False