question

Vishakha900-1013 avatar image
0 Votes"
Vishakha900-1013 asked JoyZ commented

How to recover sharepoint site if folder deleted from IIS

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.

office-sharepoint-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JoyZ avatar image
0 Votes"
JoyZ answered JoyZ commented

@Vishakha900-1013,

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.



image.png (20.7 KiB)
image.png (42.1 KiB)
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @JulieWang-MSFT

I tried above steps but it did not create website in IIS.

0 Votes 0 ·
JoyZ avatar image JoyZ Vishakha900-1013 ·

@Vishakha900-1013,

In order to get a better forum experience, we changed your answer to a comment.

Have you refreshed the site option in IIS?

92533-image.png


0 Votes 0 ·
image.png (9.6 KiB)

@JulieWang-MSFT

yes. I reset IIS and Refresh Sites but still website not created in IIS.

0 Votes 0 ·
Show more comments

@Vishakha900-1013,

Is there any progress on this issue?

Please feel free to reply.

0 Votes 0 ·