3 ms·
I prefer C:\> perl -MWin32 -E "say Win32::FormatMessage(1303)" No encryption key is available. A well-known encryption key was returned. You can put
by nanis 5y ago
I prefer
C:\> perl -MWin32 -E "say Win32::FormatMessage(1303)"
No encryption key is available. A well-known encryption key was returned.
You can put that in a batch file:
C:\> type %USERPROFILE%\bin\wm.bat
@perl -MWin32 -E "$e = shift; say defined($e) ? Win32::FormatMessage($e) : 'Need exit code'" %*
so it's always available:
C:\> wm 2450
The user accounts database is not configured correctly.
I am not sure what the right way to do this in PowerShell[1] is, but this batch script has served me well for almost two decades now.
[1]: https://geekeefy.wordpress.com/2016/06/14/powershell-import-query-all-windows-system-error-codes-for-description/ https://geekeefy.wordpress.com/2016/06/14/powershell-import-...
- biryani_chicken 5y agoMicrosoft has an error lookup tool [0]: $ err 2450 # for decimal 2450 / hex 0x992 NERR_BadUasConfig lmerr.h # /* The user accounts database is not configured correctly. # */ # No results found for hex 0x2450 / decimal 9296 # 1 matches found for "2450" [0] https://www.microsoft.com/en-us/download/details.aspx?id=100432 https://www.microsoft.com/en-us/download/details.aspx?id=100...
- nanis 5y ago> Microsoft has an error lookup tool My little one liner has the advantage of having worked for me since Windows 98 days (OK, Perl did not have `say` then), but this tool provides more clues: C:\> Err_6.4.5.exe 343 # for decimal 343 / hex 0x157 KERNEL_THREAD_PRIORITY_FLOOR_VIOLATION bugcodes.h ERROR_EXTERNAL_BACKING_PROVIDER_UNKNOWN winerror.h # The external backing provider is not recognized. # for hex 0x343 / decimal 835 ERROR_INVALID_SERVER_CERT raserror.h # as an HRESULT: Severity: SUCCESS (0), FACILITY_NULL (0x0), Code 0x157 # for decimal 343 / hex 0x157 ERROR_EXTERNAL_BACKING_PROVIDER_UNKNOWN winerror.h # The external backing provider is not recognized. # 4 matches found for "343" versus C:\> wm 343 The external backing provider is not recognized.