I have a vague memory of reading about a way to convert error numbers from a format like this -1073740791
to something meaningful. I am pretty sure it involved converting from a signed Int to something else, and that there was a way to do it in Powershell. But I can't remember enough details to get any results from a search it seems.
Am I just missing some detail, or am I misremembering completely?
CodePudding user response:
You can do the following to convert those numbers to more Google-searchable message/exception hex numbers:
'0x{0:X}' -f -2147219694
# --> 0x80040712 --> E_UPDDEPLOY_REBOOT_REQUIRED
A system restart is required to complete the installation. Windows Update Agent'0x{0:X}' -f -1073740791
# --> 0xC0000409 --> STATUS_STACK_BUFFER_OVERRUN
Very generic error.. Can be caused by corrupted system files.
See also STATUS_STACK_BUFFER_OVERRUN doesn’t mean that there was a stack buffer overrun