Two simple ways to delete a Windows Service

Hello,

I have often had problems with deleting a Windows Service. Normally you shouldn’t delete a Windows Service, but sometimes (for example if a BETA program doesnt uninstall correct or something like that) it is needed.

I have listed two methods on how to delete a Windows Service here:

The first method is by changing in the Registry Database:
1. First run regedit or regedit32 (You can do that from the Start-menu > Run > Type “regedit” and then OK).

2. Find the registry-entry “HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services”

3. Look for the service in the tree-structure and delete it.
You can look at the keys (mostly the key ImagePath) to see what files the service is using and delete them as well (if necessary).

The second method is a bit more simple – it is by typing a command in the command prompt:
1. First run the Command Prompt (You can do that from the Start-menu > Run > Type “cmd” and then OK).
If you are running Windows Vista or Windows 7 you need to run the Command Prompt as an Administrator (that is done by right-clicking the short-cut and choose “Run as…”)

2. When the Command Prompt is running simply just type: sc delete “the-service-nam”.

Both methods require that you reboot the computer afterwards if you want to see the changes in the Service Manager.

Tags: , , , , , , , , , , , , ,

Ingen kommentarer endnu.

Skriv en kommentar