Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot delete windows 7 service

I have a service called "A B C". Now I am trying to delete the service from cmd in administrator mode:

sc delete "A B C"

but that gives:

C:\>sc delete "A B C"
[SC] OpenService FAILED 1060:

The specified service does not exist as an installed service.

The service is present in the service manager and is set to automatic. How do I delete it?

http://antivirus.about.com/od/securitytips/ht/how-to-delete-windows-service.htm

like image 228
u123 Avatar asked Dec 08 '11 15:12

u123


People also ask

How do I force a Windows service to uninstall?

You can also remove services using a command line. Hold down the Windows Key, then press “R” to bring up the Run dialog. Type “SC DELETE servicename“, then press “Enter“.


1 Answers

Since you mentioned that "is set to automatic", it could not be deleted already.

  1. Make sure you have the correct service name. A service can have a service name, and a display name which is different from the former.
  2. If this is a service created by a virus, it is quite possible that OpenService is hooked to keep virus alive, and ordinary method does not work in this situation. Try some anti-virus toolkits, like PsService in Sysinternals Suite or XueTr.
like image 119
0902horn Avatar answered Sep 21 '22 02:09

0902horn