Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Service is giving Description: <Failed to read description error code 2>

I have tired to uninstall a disabled windows service through registry It is removed from registry but it is still showing in Services.msc with

Description: Failed to read description error code 2

like image 306
Elvin Avatar asked Oct 31 '12 07:10

Elvin


People also ask

What is an error code 2?

If you have received this warning on your PC, it means that there was a malfunction in your system operation. Error code "error 2" is one of the issues that users may get as a result of incorrect or failed installation or uninstallation of software that may have left invalid entries in system elements.

How do I find Windows Update service description?

Service descriptions are kept in the registry under LocalMachine\System\CurrentControlSet\services and then open the key for your service name, one of the keys is Description which holds the description text. Change that and restart the computer.


1 Answers

Intuition/How you got there -

I am assuming you did either or both of these to land in this error message. a.Deleted the key manually from registry by HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and deleted the service from here)

b.This service was in "automatic" start - so on deleting the service was somehow mislead in "starting automatically" - and hence produced this code Failed to read description error code 2 . Here's why - You should have stopped the service, or changed it to "Start manually" before doing this.

How to fix it and what worked for me -

[1]Go to cmd prompt in admin mode (meaning select cmd -> "Run as Administrator")

You should be in "C:/windows/system32/" [This should come up be default if you are in admin mode, as above] Type -> sfc /scannow After this the scan will begin and the following logs will appear --

Beginning system scan. This process will take some time.

Beginning verification phase of system scan. Verification 100% complete. Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log

The system file repair changes will take effect after the next reboot.

[2] Finally reboot your system ! And the service will no longer appear in services.msc.

like image 173
ekta Avatar answered Sep 20 '22 21:09

ekta