I have a couple old services that I want to completely uninstall. How can I do this?
Click Start | Run and type regedit in the Open: line. Click OK.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
Scroll down the left pane, locate the service name, right click it and select Delete.
Reboot the system
Remove the right key from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Use the SC command, like this (you need to be on a command prompt to execute the commands in this post):
SC STOP shortservicename
SC DELETE shortservicename
If you need to find the short service name of a service, use the following command to get a list of services and their status:
SC QUERY
For a more concise list, execute this command:
SC QUERY | FIND "_NAME"
The short service name will be listed just above the display name, like this:
SERVICE_NAME: SSDPSRV
DISPLAY_NAME: SSDP Discovery Service
And thus to delete that service (it is not recommended to delete the SSDPSRV service btw):
SC STOP SSDPSRV
SC DELETE SSDPSRV
Use services.msc or (Start > Control Panel > Administrative Tools > Services) to find the service in question. Double-click to see the service name and the path to the executable.
Check the exe version information for a clue as to the owner of the service, and use Add/Remove programs to do a clean uninstall if possible.
Failing that, from the command prompt:
sc stop servicexyz
sc delete servicexyz
No restart should be required.
Here is a vbs script that was passed down to me:
Set servicelist= GetObject("winmgmts:").InstancesOf ("Win32_Service")
for each service in servicelist
sname=lcase(service.name)
If sname = "NameOfMyService" Then
msgbox(sname)
service.delete ' the internal name of your service
end if
next
If they are .NET created services you can use the installutil.exe with the /u switch its in the .net framework folder like C:\Windows\Microsoft.NET\Framework64\v2.0.50727