Reputation: 82517
I have a windows service running on a server (that I would rather not reboot if I can).
The EXE for this service is gone (beyond recovery) and I don't have a copy (it was a debugging version that has since been updated).
Is there anyway to remove this service from the services list without the exe that ran it?
Upvotes: 23
Views: 24842
Reputation: 1
this works great (need admin cmd )
C:\Windows\system32>sc GetKeyName "SERVER"
[SC] GetServiceKeyName Êxito
Nome = SERVER
C:\Windows\system32>sc delete "SERVER"
[SC] DeleteService Êxito
C:\Windows\system32>sc delete "SERVER 2"
[SC] DeleteService Êxito
Upvotes: 0
Reputation: 46095
Use autoruns tool (formerly by sysinternals, now on Microsoft site), it lets you manage services and drivers (their records in registry).
Upvotes: 3
Reputation: 514
You can also use the register
Upvotes: 2
Reputation: 405
Note that sc delete servicename works, but the servicename is the 'KeyName'.
E.g. For Confluence, you will see "Atlassian Confluence" in the list of services. This is the 'Descriptive' name. To remove it type:
sc GetKeyName "Atlassian Confluence"
In my case this returned Confluence150114140910. So I then typed:
sc delete Confluence150114140910
Upvotes: 14
Reputation: 46052
Have you tried sc <server> delete [service name]
from the command line?
A more comprehensive answer can be found here.
Upvotes: 33