How to recover sharepoint site if folder deleted from IIS

Vishakha 900 1 Reputation point
2021-04-28T08:33:05.753+00:00

One of my site folder is deleted from IIS but I can see this web application and content database in central administration.

I restored IIS folder from backup in C:\Inetpub\wwwroot\wss\VirtualDirectories\ path but still website is not up. Can anyone help how to restore sharepoint website if folder is deleted from IIS.

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JoyZ 18,111 Reputation points
    2021-04-29T06:07:49.95+00:00

    @Vishakha 900 ,

    Open SharePoint Management Shell as Administrator, then run following powershell for the issued web application:

    92483-image.png

     $wa = Get-SPWebApplication http://webAppUrl  
     $wa.ProvisionGlobally()  
    

    Then check if the IIS site has been provisioned, restart the IIS site, now we can access the site again.

    92477-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.