Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

HELP!!!

share|improve this question

2 Answers 2

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.

share|improve this answer

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.

share|improve this answer
    
can this command be used in powershell - sharepoint 2013 –  naijacoder Sep 16 at 11:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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