3

I would like to cleanup a windows service leftover from an application that I uninstalled. The executable for it has been removed, but it is still visible in the services view.

11

At a command prompt:

sc delete SERVICENAME

See Source: How To Unregister Windows Services

1
  • Yeah, nice. I've always done it the slow, manual way via the Registry, but if this works I won't even bother answering with that disaster-waiting-to-happen. – JMD Sep 30 '09 at 20:07
0

If you have tried the above and it didn't appear to work even though you are positive you typed everything correctly try the following command:

sc query state= all >> "C:\\[Preferred Foldername]\Service_details.LOG"

I found when running the above that, even though the Windows Services MMC showed that the name of the service was one thing, when i piped it to a log file it showed it as another.

Basically, because there was a space in the name, Windwos truncated it to remove the space. So even though it displayed with a space in the Services MMC, in realterms, there shouldn't have been one.

After the above discovery I found that the suggested routine worked a treat!

Thanks for that one Will

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.