How to Delete/Remove a Windows Service

Delete a Windows Service

This article is explaining about how to Delete or Remove a Windows Service manually. Recently, I was trying to delete a windows service. Normally it should not be necessary to manually delete a service. Uninstalling an application should remove its associated service . However, I installed some beta products and a service created by one of the applications was not removed automatically.

Here, I have listed the possible solutions to delete windows service.

Summary

  1. Remove/Delete a Windows Service via Registry
  2. Remove/Delete a Windows Service via SC command

Remove/Delete Windows Service via Registry

 Its very easy to remove a service from registry if you know the right path. Here is how I did that:

1. Run Regedit or Regedt32

Delete Windows Service

2. Go to the registry entry “HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services

3. Look for the service that you want delete and delete it. You can look at the keys to know what files the service was using and delete them as well (if necessary).

Delete Windows Service via Registry

Delete/Remove Windows Service manually via SC Command

Alternatively, you can also use command prompt and delete a service using following command:

sc delete [SERVICE name]

You can also create service by using following command

sc create "MorganTechService" binpath= "C:\Program FilesMorganTechSPacemyservice.exe"

Note: You may have to reboot the system to get the list updated in service manager.

Note : This article is applies to Windows Server 2003, Windows Server 2008,Windows Server 2008 R2, Windows Server 2012, Windows 7 and Windows 8.

Thanks,
Morgan
Software Developer

Advertisement

Leave a Comment