Today I will post about a problem that happen in one of our development farms. My colleagues sent me emails about the can’t Access to a site collection, and I was very surprised when I accessed to Central Administration and saw that the ste collection has been dissapeared.
So, If you have deleted a site collection and you want it back again it really is quite straight forward. It’s the same process for both SharePoint 2010 and 2013.
In case, you are using Office 365 then it’s all through the admin interface for SharePoint. Under the section where you manage your site collections there is a recycle bin icon on the ribbon, just go in there and restore!
If you have SharePoint on-site fire up PowerShell on the server (make sure it’s either the Management shell or you have the SharePoint modules loaded)
Then run the following:
Get-SPDeletedSite
This will list all the deleted site collections, only you have to localize the SC that has been deleted and copy the ID (SiteID) which is is necessary for the following Powershell command
Restore-SPDeletedSite –Identity <siteId>
It will ask if you sure, so just say yes.
There is no output to say “success” but if you browse to your site it will now exist again!
HTH!