Export (0) Print
Expand All

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

Redistributable

WinRM 1.1 (Windows Server 2003 R2, or Windows Server 2003 with SP1)

Header

Wsmandisp.h

IDL

Wsmandisp.idl

Library

WSManAutomation.lib

DLL

Wsmauto.dll

See also

WSMan

 

 

Show:
© 2014 Microsoft