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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

WSManDisp.h

IDL

WSManDisp.idl

Library

WSManDisp.tlb

DLL

WSMAuto.dll

See also

WSMan

 

 

Show: