This is the scenario. You want to for one or another reason stop a service (In my case I had the Central Administration started on two servers in a farm) from the Central Administration UI, Central Admin, Operations and Services on Server. When you click on Stop in the Actions column of the listed Services, the status changes to “Stopping” and get stuck there.

This can be solved with STSADM by using the provisionservice operation. But before you do that, you need to know the name of the service. This can be done with the enumservices operation.

Run stsadm -o enumservices on the WFE server where you have the service in stopping state. This will give you a list with all services on the server and you need to find the one you want to stop. In my case I was stopping the Central Administration that was set up on two different WFEs so it looked like this:

enumservices
The screen shot is taken after the command and therefore the status is Disabled as I wanted

In the name section I see that the name of the service I want to stop is WSS_Administration. Now when I know this I can run the Provisionserviers operation like below:

 stsadm -o provisionservice -action stop -servicetype SPWebservice -servicename WSS_Administration



  1. Dave on Tuesday 26, 2009

    Thanks,

    I have been looking for this

  2. Mattias Karlsson on Tuesday 26, 2009

    Good to be able to help!



Subscribe without commenting