10

I have a multi server farm and I want to stop "Microsoft SharePoint Foundation Web Application Service" in all the other servers except Web Front End server.

When i tried stopping this service it switched to "STOPPING" status and nothing seems to happen.

This is how it looks

I tried IISRESET and server restart. Did not work.

2
  • Try this: > stsadm -o provisionservice -action start -servicetype spwebservice Aug 2, 2018 at 7:08
  • stsadm -o provisionservice -action stop -servicetype spwebservice - helped me
    – Raf
    Apr 8, 2019 at 10:12

2 Answers 2

13

Try these commands if you haven't already,

 stsadm -o provisionservice -action start -servicetype spwebservice

Source

Or using PowerShell,

$server = "win-lhg69g3kdb2"
$service = Get-SPServiceInstance -Server $server | where-object {$_.TypeName -eq "Microsoft SharePoint Foundation Web Application"}
$service | Stop-SPServiceInstance -confirm:$false > $null
while(-not ($service.Status -eq "Disabled")){
    write-host -ForegroundColor Yellow $service.Status; sleep 5;
    $service = Get-SPServiceInstance -Server $server | where-object {$_.TypeName -eq "Microsoft SharePoint Foundation Web Application"}
}
Get-SPServiceInstance -Server $server | where-object {$_.TypeName -eq "Microsoft SharePoint Foundation Web Application"} | Start-SPServiceInstance -confirm:$false > $null

Source

Or try,

stsadm -o execadmsvcjobs

This Scenario might help too.

If nothing of above works then use ULS Viewer to identify the main cause of problem.

2

Be sure to wait after you issue

stsadm -o provisionservice -action start -servicetype spwebservice

it takes a long time to complete if you have many web applications.

1
  • can this command be used in powershell - sharepoint 2013
    – naijacoder
    Sep 16, 2014 at 11:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.