有時候,一些本地命令,比如net.exe,在執(zhí)行過程中,會返回數(shù)字編號形式的錯誤信息。很郁悶的是,我們不知道這些數(shù)字代表什么意思。以前,我們可以使用如下的方式去獲取數(shù)字代表的信息:
PS> net helpmsg 3534
The service did not report an error.
PS> net helpmsg 1
Incorrect function.
PS> net helpmsg 4323
The transport cannot access the medium.
PS> winrm helpmsg 3534
The service did not report an error.
PS> winrm helpmsg 1
Incorrect function.
PS> winrm helpmsg 4323
The transport cannot access the medium.
PS> winrm helpmsg 0x80338104
The WS-Management service cannot process the request. The WMI service returned an 'access denied' error.
PS> net helpmsg 0x80338104
The syntax of this command is:
NET HELPMSG
message#