#PSTip Decoding WinRM error messages

When troubleshooting WinRM errors, you’ll sometime encounter hex error codes, such as 0x80338104, which don’t say much about the error itself. In such cases, you can use the winrm command line tool with the helpmsg parameter, to convert the error code to a readable error description.

PS> winrm helpmsg 0x80338104
The WS-Management service cannot process the request. The WMI service returned an 'access denied' error.

Bonus tip: All error codes that start with 0x8033 are WinRM errors.

About the author: Shay Levy

Shay Levy is a Co-founder and editor of the PowerShell Magazine. He is a multiple-year recipient of the Microsoft MVP award, and a Microsoft Certified Trainer (MCT). Shay often covers PowerShell related topics on his blog and you can also follow him on Twitter at @ShayLevy

Related Posts