Pages

Friday, December 25, 2015

Microsoft SharePoint Foundation Web Application Service Stuck at Start/Stop.


SharePoint 2013 consists with plenty of services that work in servers of SharePoint farm. In some cases, it needs to configure settings and start/stop some service. Central Administration hold the rights to manage service directly in this scenario. It can also manage and monitor services remotely. In addition we can manage services by using Windows PowerShell.

In this post, its going to describe how to work with SharePoint Foundation Web Application Service using PowerShell.

1. Open SharePoint 2013 Management Shell as Administrator. Type Following command.

Get-SPServiceInstance -Server [Your_Server_Name] | sort TypeName | Format-Table -AutoSize

This will display all the services which reside on SharePoint Server.(Note that MS SharePoint Foundation Web Application Service is in “Unprovisioning” Status.)
cap1
2. In this step we are going to stop MS SharePoint Foundation Web Application Service using PowerShell. Open SharePoint 2013 Management Shell as Administrator. Type Following command.

Get-SPServiceInstance -Server [Your_Server_Name] | Where-Object <$_.TypeName -eq “Microsoft SharePoint Foundation Web Application”> | Stop-SPServiceInstance -Confirm:$false

This will stop the service which is in “Unprovisioning” Status.
cap5
3. Now we need to restart the service again using PowerShell. Open SharePoint 2013 Management Shell as Administrator. Type Following command.

stsadm -o provisionservice -action start -servicetype spwebservice

This will restart the service which is stopped previous step.
cap2
4. Now we can check whether service has started successfully.Open SharePoint 2013 Management Shell as Administrator. Type Following command.

Get-SPServiceInstance -Server [Your_Server_Name] | sort TypeName | Format-Table -AutoSize

This will display all the services which reside on SharePoint Server.(Note that MS SharePoint Foundation Web Application Service is in “Online” Status now. So the service has started successfully.)
cap3
Also we can check the MS SharePoint Foundation Web Application Service on Central Administration.
cap4
Note that MS SharePoint Foundation Web Application Service is in “Started” Status now.

5 comments:

  1. You can predefine information management policies, and make them available for use within your site collection Livetiles

    ReplyDelete
  2. Looking at your scripting, I think you meant to put {$_.TypeName -eq “Microsoft SharePoint Foundation Web Application”} instead of <$_.TypeName -eq “Microsoft SharePoint Foundation Web Application”>.

    ReplyDelete
  3. Very detailed explanation. Thank you so much only one change suggested in comments by turianx9. Rest all is very helpful.

    ReplyDelete