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-...