Subscribe:      
 

Recover a deleted SharePoint site or site collection with the *New* Site Recycle Bin

Written By: Chris Beckett -- 9/1/2011 -- join -- contribute -- (64) comments -- printer friendly version

Rating: Rate --

Categories: Features, News, PowerShell, SharePoint 2010, SharePoint Foundation 2010, System Administration

< Prev - 1 | 2 | 3 | - Next > | Become a paid author

Recover a Deleted Site Collection

Unfortunately, there is no user interface for restoring deleted site collections. Managing deleted site collections requires using PowerShell. SharePoint 2010 Service Pack 1 introduces 3 new PowerShell CmdLets for managing the Recycle Bin for site collections.

  • Get-SPDeletedSite
  • Restore-SPDeletedSite
  • Remove-SPDeletedSite

The easiest way to get a list of all the deleted site collections is to just call Get-SPDeleteSite without any parameters. In the following example, for brevity, I have formatted the output as a table and filtered the columns displayed. In the second sample, I have added a wildcard filter to the command that can be used to easily filter sites based on relative paths.

Once you have identified the site you want to restore, you call the Restore-SPDeletedSite. To restore one or more sites, it is easiest to just pipe the results from Get-SPDeletedSite. By default, the command will ask you to confirm the restore. To eliminate the confirmation, just add "Confirm:$true" to the end of the command.


Next Steps

< Prev - 1 | 2 | 3 | - Next >



Learn more about SharePoint



Sponsor Information




Copyright (c) 2010-2017 Edgewood Solutions, LLC All rights reserved
privacy | disclaimer | copyright | advertise | contribute | feedback | about
Some names and products listed are the registered trademarks of their respective owners.


MSSharePointTips.com | MSSQLTips.com