WSMan.GetErrorMessage method
Returns a formatted string that contains the text of an error number. This method performs the same operation as the Winrm command-line winrm helpmsg decimal or hexadecimal error number.
Syntax
WSMan.GetErrorMessage( _
ByVal errorNumber, _
ByRef errorMessage _
)
Parameters
-
errorNumber [in]
-
An error message number in decimal or hexadecimal from WinRM, WinHTTP, or other operating system components.
-
errorMessage [out]
-
An error message string formatted like messages returned from the Winrm command.
Remarks
The corresponding C++ method is IWSManEx::GetErrorMessage.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
IDL |
|
Library |
|
DLL |
|
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for