Vaccano
Vaccano

Reputation: 82517

Delete a Windows Service without the EXE

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

Answers (6)

custume
custume

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

Use autoruns tool (formerly by sysinternals, now on Microsoft site), it lets you manage services and drivers (their records in registry).

Upvotes: 3

msjonathan
msjonathan

Reputation: 514

You can also use the register

  1. Start > Run > regedit
  2. Goto HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
  3. Delete the folder of your service.
  4. Restart your system.

Upvotes: 2

Sam Kenny
Sam Kenny

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

Matt Davis
Matt Davis

Reputation: 46052

Have you tried sc <server> delete [service name] from the command line?

A more comprehensive answer can be found here.

Upvotes: 33

barti_ddu
barti_ddu

Reputation: 10309

Try:

sc delete servicename

Upvotes: 16

Related Questions