How to use it

  1. Type or paste the code. Hex, a negative number, a large positive number and a plain code all work.
  2. Read the meaning in the first box.
  3. Use the table to copy the code in the form you need.
  4. Copy a command to decode the code on a Windows PC.
  5. Follow the link to the fix page when this site has one for the code.

Why one error has three numbers

Windows stores most error codes as a 32-bit number. Tools show that number in different ways.

  • Hex: 0x80070005. Log files and the SCCM console often use this form.
  • Signed decimal: -2147024891. Scripts and exit codes often use this form. The number is negative because the top bit is set.
  • Unsigned decimal: 2147942405. Some reports and event logs use this form.

All three are the same error. Search for the hex form. It gives the best results.

How to read an HRESULT

An HRESULT has three main parts.

  • Severity is the top bit. A code that starts with 8 or higher is a failure.
  • Facility says which part of Windows made the code. It sits in the digits after the first one.
  • Code is the last four hex digits. It is the error number inside the facility.

Facility 7 is the one to know. It means the HRESULT wraps a plain Win32 error. So 0x80070005 is Win32 error 5, "Access is denied". 0x80070643 is error 1603, the MSI "Fatal error during installation".

Other facilities you will meet: 4 is defined by the program that returned the code, so the same number can mean different things in different programs. 0x24 is Windows Update, as in 0x8024xxxx. Configuration Manager uses facility 0x7D0 for its own 0x87D0xxxx codes.

Decode a code without this page

Two commands that are part of Windows do the same job offline.

  • net helpmsg 5 shows the text of a plain Win32 code.
  • certutil -error 0x80070005 shows the name and the text of a full code.

The built-in table on this page holds the codes that admins meet most. For a code that is not in the table, the commands give the answer.

Questions

Why is my error code a negative number?

The tool that showed it reads the 32 bits as a signed number. A failure code has the top bit set, and a signed number with the top bit set is negative. Type the negative number here to get the hex form.

Why does net helpmsg say it cannot find the message?

The net helpmsg command only knows plain Win32 codes. It does not take hex and it does not know codes from other facilities, such as Windows Update or Configuration Manager codes. Use certutil -error for those.

Is 0x80070005 the same as error 5?

Yes. The 8007 at the start says "failure, facility 7", and facility 7 means a Win32 error. The last four digits, 0005, are the Win32 code. Error 5 is "Access is denied".

What does exit code 3010 mean?

It means success, and the PC needs a restart to finish. Exit code 1641 also means success, but the installer has already started the restart.