DEV Community

Fabian Anguiano
Fabian Anguiano

Posted on

How to kill a windows service that won't die.

Recently had a windows service that would not go away, did not find much documentation on this, so I am writing this for anyone else who is having similar issues.

Run with powershell as administrator.

Stop the service:

sc.exe stop service_name

Kill the service:

sc.exe delete service_name

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay