The "sc query" is used to identify the PID or process identifier of a running service. This is required to perform the "taskkill" command.
To obtain the PID, first find out the exact name of the service you wish to kill. It can be found in the service properties.
Remember this name is case sensitive and must be copied exactly.
- Now load a command prompt with admin rights
- Type the command "sc queryex [nameofservice]"
The second line from the bottom gives you the PID number of that service. Now to "kill" the task and reset it to a "Stopped" state.
Use the command "taskkill /PID [PID Number from your sc query] /F" (The /F is a force command needed to force the process kill.
The service should now be in a "Stopped" state.
4 comments:
Thaaaank you :)
I am logged in as admin and I right clicked opend CMD as administrator and still received "Access is Denied"
thank you
youhou!!!saved me!!!
Post a Comment