How to get back the SharePoint WebServices applicaion in IIS if deleted, SharePoint 2010

Technorati Tags: Sharepoint 2010,Sharepoint WebService Application,web service

In SharePoint 2010, if you have deleted or some how removed the Sharepoint Webservice site unknowingly.

its hard to get it back, in spite of running psconfig we would not able to get the SharePoint Webservice back.

It is the same SharePoint webservice application which we see in Sharepoint 2007

Here is is powershell script which can help us to get all the running service back under IIS with their GUID.


$webservice = [System.Type]::GetType("Microsoft.SharePoint.Administration.SPIisWebServiceSettings, Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c")



$Instance = $webservice::Default

$Method = $webservice.GetMethod("ProvisionLocal", "Instance, NonPublic", $null, @(), $null)

$Method.Invoke($Instance, $null)

$Method = $webservice.GetMethod("Provision", "Instance, Public", $null, @(), $null)

$Method.Invoke($Instance, $null)

Once we are done with about script we should have “SharePoint Web Service” under IIS with only few information.

now we need to get all the respective VD in IIS.

Get-SPServiceApplication | ForEach-Object {$_.Provision()}


Above steps should helps us to get the missing VD and Sharepoint Webservice back in IIS.