IWSManSession interface

Defines operations and session settings. Any Windows Remote Management operations require creation of an IWSManSession object that connects to a remote computer, base management controller (BMC), or the local computer. WinRM network operations include getting, writing, enumerating data, or invoking methods. The methods of the IWSManSession object mirror the basic operations defined in the WS-Management protocol.

Methods

The IWSManSession interface has these methods.

Method Description
IWSManSession::Create Creates a new instance of a resource and returns the endpoint reference (EPR) of the new object.
IWSManSession::Delete Deletes the resource specified in the resource URI.
IWSManSession::Enumerate Enumerates a table, data collection, or log resource.
IWSManSession::Get Retrieves the resource specified by the URI and returns an XML representation of the current instance of the resource.
IWSManSession::get_BatchItems Sets and gets the number of items in each enumeration batch.
IWSManSession::get_Error Gets additional error information in an XML stream for the preceding call to an IWSManSession object method.
IWSManSession::get_Timeout Sets and gets the maximum amount of time, in milliseconds, that the client application waits for Windows Remote Management to complete its operations.
IWSManSession::Identify Queries a remote computer to determine if it supports the WS-Management protocol.
IWSManSession::Invoke Invokes a method and returns the results of the method call.
IWSManSession::Put Updates a resource.
IWSManSession::put_BatchItems Sets and gets the number of items in each enumeration batch.
IWSManSession::put_Timeout Sets and gets the maximum amount of time, in milliseconds, that the client application waits for Windows Remote Management to complete its operations.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wsmandisp.h

See also

Windows Remote Management Reference