Restore deleted site collections in SharePoint 2010

If users have deleted document, lists or sites they can restore it from site recycle bins. In case they are not found in site recycle bin, Site collection admins can restore it from Site collection recycle bins.

However what should we do if the whole site collection is deleted? In older world, you would have to restore the complete content database to a separate environment. But in SharePoint 2010 and 2013, you have got another option.

At farm level, deleted site collections are stored in SPdeletedsite object. You can find a list of all deleted sites using following powershell script:

Get-SPDeletedSite - This will list all the deleted site collections as below


If your site is present in this list, you can restore it using the below CMDlet

Restore-SPDeletedSite -Identity /sites/HSCel

You will be asked to confirm this action before you complete it.




Please note that you have to use the relative path of the site.

In case multiple sites with same name, use site ID for deletion

If you want to remove a site collection permanently from your farm use the following:

Remove-SPDeletedSite -Identity /sites/HSCel
To explore other features of these CMDlets, please use following links:
http://technet.microsoft.com/en-us/library/hh286316.aspx
http://technet.microsoft.com/en-us/library/hh286319.aspx
http://technet.microsoft.com/en-us/library/hh286317.aspx

No comments:

Post a Comment