Showing posts with label Forcible stop windows service. Show all posts
Showing posts with label Forcible stop windows service. Show all posts

Monday, 23 May 2011

Stop a windows service forcibly

If you want to stop a windows service forcibly, first you need to know the PID of that process.

To know the PID open command-prompt and type the following command

sc queryex servicename

Now we can get the PID of the process. After getting it, to kill the process we need to type the following command

taskkill /F /PID pid

That's it. Now you can see the success message on the screen.