I want to delete MyNewService
, but when I type in
sc delete MyNewService
I simply can't delete it because there is no such servic, due to
"the Specified service does not exist as an installed service"
error
Any ideas how to solve this problem?
Edit: as far as the service panel is concerned, the MyNewService is there all the time. I restarted the PC a few times and it's there.
View the properties of the service and you'll see a "
Service Name
" and "Display Name
". The display name is the one you see in services.msc, you need to use the service name with the net command however. Sometimes they're very different for example "Extensible Authentication Protocol Service
" is the display name and "EapHost
" is the service name.sc delete "SERVICE NAME". Don't forget to put double quotes around the service name (if it has spaces in it). If left out it won't delete the service.
I had faced the same issue even the service name was correct. Finally I did the following
R-Clicked on your service name (Search 'Services' from system search bar) and found the 'Path to executable'.
Deleted the entry from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services<YourServiceName>\
Deleted the original executable from 'Path to executable'
Restarted the computer.
Here is the steps how to install, uninstall and delete the services from services.msc.
Note open the visual studio command prompt as an administrator and then run the above commands.