PowerShell command to restore deleted sub site

sns 9,226 Reputation points
2023-03-14T09:32:07.1866667+00:00

We have verified audit log also not enabled so we can not know who deleted it.

I have verified it is not there in either of the recyle bin

is there any to find out who deleted it?

& if no PowerShell commad , do we need to restore using Db backup only? pLease confirm

in case if it is Db back up method, how we can restore the sub site to same site collection as it allows only 1 record of site collection when we mount the Db to same or different web application

It is SharePoint 2016

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,291 questions
{count} votes

Accepted answer
  1. Emily Du-MSFT 43,831 Reputation points Microsoft Vendor
    2023-03-15T09:58:55.3333333+00:00

    1.Go to site contents -> Recycle Bin -> Check whether the sub site exists here.

    Go to site collection -> Site settings -> Recycle Bin -> Check whether the sub site exists here.

    If sub site does not exist in both recycle bins, there is no PowerShell to restore it.

    2.You could backup a sub site through recover data from an unattached content database. Go to Central Administration -> Backup and Restore -> Recover data from an unattached content database -> Export site or list. Then restore the sub site to the site collection.

    References:

    https://petri.com/restore-from-unattached-content-database-sharepoint-2013/

    https://blogs.msmvps.com/haarongonzalez/recover-data-from-an-unattached-content-database/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful