Following a restart of SQL Server Analysis Services, the service remained in the stop state. After waiting several minutes, nothing happened. It was impossible to start or stop the service.
In fact, the problem was that the process was still active, because when you clicked on Stop or Restart the service, something interfered with the stopping of the process. So we need to kill the process using the PID (Process IDentificator).
The command to retrieve the PID :
sc queryex “nom_du_service”
Once the PID has been retrieved, run the following command to kill the process:
taskkill /PID pid_recuperer /f
Or, of course, pid_recuperer is the PID resulting from this command. The /f which stands for Force at the end is not mandatory, but is often necessary to kill your service. If you use /f, make sure you kill the right service and not, for example, an even more important one.