2006/02/23

Manually Remove a Windows Service

You can use the command line tool "sc" to delete a service (as well as a whole bunch of other things, like set it to manual/auto, stop/start it, etc).


C:>sc delete
DESCRIPTION:
Deletes a service entry from the registry.
If the service is running, or another process has an
open handle to the service, the service is simply marked
for deletion.
USAGE:
sc delete [service name]

3 comments:

Kitten said...

windows xp only?

Loping said...

I guess.. or try

manually remove a service:

1. Run Regedit or regedt32.
2. Find the registry entry:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services

3. Find the service there and delete it.

You may wish to look at the keys and see what files the service was using and perhaps delete them also.

Note: You will have to reboot before the list gets updated in server manager.

Kitten said...

I know how to remove from registry, but have not tried "sc delete" command.

Need to find a windows 2000 machine to try. :)