IWSManSession::Identify method

The IWSManSession::Identify method queries a remote computer to determine if it supports the WS-Management protocol. For more information, see Detecting Whether a Remote Computer Supports WS-Management Protocol.

Syntax

HRESULT Identify(
  long flags,
  BSTR *result
);

Parameters

flags

The only flag that is accepted is WSManFlagUseNoAuthentication.

result

A value that, upon success, is an XML string that specifies the WS-Management protocol version, the operating system vendor and, if the request was sent authenticated, the operating system version.

Return Value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header wsmandisp.h
Library WSManDisp.tlb
DLL WSMAuto.dll

See Also

IWSManSession

Session.Identify