Windows: Under the cover - Decrypt windows error message codes

We saw these errors in the event log: 0x80070422 or 0x8007042c.

What are these cryptic errors? 
First thing we note, they start with 0x80070... so they are simply COM-specific error codes (HRESULTs in COM language) which denote Win32 failures.

To manually transform such a HRESULT into its corresponding error code, do the following:

a) Isolate the last four digits in the hex number above. In our case 0x422 or 0x42c.

b) Transform this number in decimal. The "SET /A" command line comes handy here: 

E:\>set /A 0x422

 1058

 c) Then, cut & paste the error code above into the parameters of the NET HELPMSG command:

 E:\>net helpmsg 1058

The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

Windows programmers might recognize these errors immediately... for example 1058 is ERROR_SERVICE_DISABLED, and 0x80070422 is nothing else than HRESULT_FROM_WIN32(ERROR_SERVICE_DISABLED).

Comments

Popular posts from this blog

How to make exrernal USB HDD available to the Synology Media center

How to loop "ipconfig /renew" until it gets IP address on remote PC to test DHCP using PowerShell

When users is trying to open PDF file from the internet using browser he gets following error message - Problem (1:1)