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.)
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.)
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.
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.
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.
stsadm -o provisionservice -action start -servicetype spwebservice
This will restart the service which is stopped previous step.
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.)
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.)
Also we can check the MS SharePoint Foundation Web Application Service on Central Administration.
You can predefine information management policies, and make them available for use within your site collection Livetiles
ReplyDeleteLooking 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”>.
ReplyDeleteYes this is right.
DeleteWindows Application Development Services
ReplyDeleteVery detailed explanation. Thank you so much only one change suggested in comments by turianx9. Rest all is very helpful.
ReplyDelete