Manually Remove a Windows Service

I needed to remove some services the other day and could not recall the name of the tool that allows you to easily add and remove services from Windows. I think it’s srvany.exe, but I have no idea how recently it has been updated, and I couldn’t find it anyway.

So I needed to remove a service and I couldn’t figure it out. Until I stumbled across this piece of sage advice.

Namely, find your way to this registry location:

 HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services

Locate the service you want to get rid of, and delete its key. Done. You may want to stop the service first, since you won’t be able to once it’s gone (and you may not even be able to remove the service until it’s stopped). You might also want to check any filenames used in the key for the service, so that you can also remove the files associated with the service.


Posted

in

Comments

52 responses to “Manually Remove a Windows Service”

  1. Jean Avatar
    Jean

    Awesome – thanks!

  2. Bruce Avatar
    Bruce

    I tried this as:

    SC delete [DameWare Mini Remote Control] and it did not work. I am trying to remove the dameware service with a batch file.

    Here is the error.
    OpenService Failed: 1060

    It says the service is not installed or doesn’t exist. But it does. I can Stop the service with NET Stop so I believe I am entering the correct service name.

    Any advice??

  3. slash Avatar
    slash

    thanks for the help, Stewart. I deleted XAMPP successfully, YAY!!!

  4. Chad Everett Avatar

    If the service shows “stopping”, usually it is hung up. About the only way I’ve found to get around it is to reboot. Sorry.

  5. sr Avatar
    sr

    EXCELLENT.. something i needed badly.

  6. Suman Avatar
    Suman

    Hi,
    I have my windows service registry entry removed, but my service still exists there, in a status of ‘stopping’. Any ideas of how to get this removed from my server.
    I tried all different means of removing it from the system, but in vain.

    Thank you,
    Suman S. Chitemella

  7. edison quinones Avatar

    I did the SC and the regedit deletion. And it works great for me. Thanks a lot!

  8. Murthy Avatar
    Murthy

    This is excellent. Simple, easy yet clearly understandable.

  9. Nagashizar Avatar
    Nagashizar

    Just tried sc delete, and liked that better than just tearing it out of the registry.

    Just be sure you use “sc delete [serviceName]” not the service description.

    The services list displays the description, rather than the actual service name, so open the service you want to remove, and find out the actual name.

  10. Jorge Escobar Avatar
    Jorge Escobar

    Excellent! I couldn’t find a better tool