IWSManSession::Identify method (wsmandisp.h)

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(
  [in, optional] long flags,
  [out]          BSTR *result
);

Parameters

[in, optional] flags

The only flag that is accepted is WSManFlagUseNoAuthentication.

[out] 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

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wsmandisp.h
Library WSManDisp.tlb
DLL WSMAuto.dll

See also

IWSManSession

Session.Identify