Wednesday, 6 July 2016

Restore-SPDeletedSite in SharePoint

Restore-SPDeletedSite


Applies to: 
SharePoint Foundation 2013, SharePoint Server 2013 Enterprise
Topic Last Modified: 2015-03-09
Restores a deleted site collection.

Detailed Description

This cmdlet was introduced in SharePoint Server 2010 with Service Pack 1 (SP1) and SharePoint Foundation 2010 with Service Pack 1 (SP1).
Use the Restore-SPDeletedSite cmdlet to restore a previously deleted site collection.
Unlike the Restore-SPSite cmdlet that uses the host name and scheme for the Identity parameter (that is, http://server_name), the value of the identity parameter for allSPDeletedSite cmdlets use a server-relative URL. Typically, the forward slash character (/) begins the relative URL and also denotes the root site.
For additional information about a server-relative URL or understanding general concepts about absolute and relative URLs, see Server-relative URL Property or Understanding Absolute and Relative URL Addresses.
SharePoint Management Shell


Example

----------------------EXAMPLE 1----------------------
Restore-SPDeletedSite -Identity 610857cb-8414-4a89-8bf3-ad3628f6c86c
This example restores a specific deleted site collection by using the site ID.

No comments:

Post a Comment