Windows Services

Recently I installed a software and the drive on which I installed the application got corrupted. So, I hooked up a new drive and installed the application on it, but the service linked to that was already on the service panel. So, unless I delete that services from the service menu, I won’t be able to reinstall and successfully run the application. That’s when I checked on how to remove the services from service menu from registry.

Starting and stopping

On the command line (cmd.exe)
A Windows service can be started and stopped on the command line (if it is not disabled):

net start name-of-service
net stop name-of-service

Opening the services panel

Type services.msc in the Start–>run box.
Listing services:
There are at least three ways to determine what services are: the registry, sc and services.msc. available.
Using the registry:
The installed services can be found in the registry under

\\HKEY_LOCAL_MACHNINE\SYSTEM\CurrentControlSet\Services

The Service and driver entries are present under the above registry key. Each sub-key represents a driver or a Service. You should be able to identify them easily by looking at the “DisplayName” and “ImagePath” values in the right-pane in the Registry Editor.

Note: Before modifying / removing a Service, create a System Restore point and/or a complete Registry backup, just in case something happens. Links containing Registry backup instructions are provided below.

Once you spot the Service/driver entry, right-click on the key and choose Delete.

Using sc:
It’s also possible to list the services with the command line utility sc:

C:\> sc query state= all | findstr SERVICE_NAME
Note: the space after state= is important. If omitted, sc tries to find a service named state=all which will, most probably, not exist.
If the state= all is omitted altogether, only running services will be returned.
services.msc
Typing services.msc into Run->Start, or into a cmd console, opens the Service panel which displays all installed services on the system.

Deleting a service:
A service can either be deleted by removing all entries belonging to a service from the registry (see above). Or by using sc:

C:\> sc delete service-name

Advertisements