Thursday, October 20, 2011

Restore Deleted Site Collection or Subsite from SharePoint 2010 - SP1 or Later

In SharePoint 2007, There was a wonderful tool from Codeplex: Site Delete Capture http://governance.codeplex.com/ to back up sites automatically when they gets deleted, So that we can restore a deleted site collection in SharePoint 2007.

In SharePoint 2010 SP1, Microsoft added instinct support to capture/restore Site collections or Sub-sites on the event of deletion.

So, when your sub-sites gets deleted, navigate to Site collection recycle bin and you can find the deleted sites, you will be able to restore from there.
sharepoint 2010 recover deleted site
SharePoint 2010 recover deleted site


What do to when the Site collection itself deleted?
How to restore deleted site in SharePoint 2010? To recover deleted site collection in SharePoint 2010, You can use these three cmdlets:

  1. Get-SPDeletedSite - Displays list of sites deleted.
  2. Restore-SPDeletedSite - Restore a deleted site
  3. Remove-SPDeletedSite - To permanently remove the deleted site collection.
sharepoint 2010 recover deleted site collection
SharePoint 2010 sp1 restore deleted site collection

Permanently Remove the Deleted sites to Recover Disk Space: 
After a while, many sites collections were deleted in a clean-up activity. So decided to permanently delete all deleted site collections from recycle bin. Here is the PowerShell script:

Get-SPDeletedSite -webapplication http://sharepoint.company.com | Remove-SPDeletedSite



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

5 comments :

  1. Oh my God - Thank you!!!!

    ReplyDelete
  2. Where is the "Donate" button?

    ReplyDelete
  3. Saved my life, thanks! :)

    ReplyDelete
  4. Hi,

    Is there any way to restore deleted site collection through PowerShell in MOSS 2007?

    Can you please help me on this.

    Thanks,
    Srinivas

    ReplyDelete

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...