Stopping a service that is still “stopping” in Windows

There are times when I restart a service in Windows and it remains “stopping” and there is nothing I can do about it.
What should I do in such cases?

If your PC is in the “Stopping” state, you cannot select “Start”, “Stop”, or “Restart” for the service.
Restarting the PC will solve the problem, but there are times when you don’t want to bother with it.
In such cases, follow the steps below.

Select [Control Panel] – [Administrative Tools] – [Services].
Right-click on the service in question and select “Properties”.
In the [General] tab, there is a column for “Service Name”, remember that name.

Next, open the Command Prompt with administrative privileges.
“Click on the “Start” button and type “cmd”. “Command Prompt” will appear in the search results.

When the command prompt opens, do the following.

sc queryex [Service name (remembered above)]

Then, details about the service will be displayed, and remember the number (process ID) in the “PID” column.
Next, execute the following command.

taskkill /pid [Process ID remembered above] /f

You can now stop the above services.