Pages

Monday 6 May 2013

Restore a deleted site collection using PowerShell

In order to delete a sub site, one can recover using admin recyclebin. You can restore a sub site which has been deleted using the UI not SharePoint designer. But if you have to recover a site collection then you will need to use powershell.

Thanks to  Salaudeen Rajack


Get-SPDeletedSite - Displays list of sites deleted. 
Restore-SPDeletedSite - Restore a deleted site 
Remove-SPDeletedSite - To permanently remove the deleted site collection.

Permanently remove the deleted site collection:
Get-SPDeletedSite -webapplication http://sharepoint.company.com | Remove-SPDeletedSite

No comments:

Post a Comment