IWSManSession interface (wsmandisp.h)
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.
The IWSManSession interface inherits from the IUnknown interface. IWSManSession also has these types of members:
The IWSManSession interface has these methods.
Creates a new instance of a resource and returns the endpoint reference (EPR) of the new object.
Deletes the resource specified in the resource URI.
Enumerates a table, data collection, or log resource.
Retrieves the resource specified by the URI and returns an XML representation of the current instance of the resource.
Sets and gets the number of items in each enumeration batch. (Get)
Gets additional error information in an XML stream for the preceding call to an IWSManSession object method.
Sets and gets the maximum amount of time, in milliseconds, that the client application waits for Windows Remote Management to complete its operations. (Get)
Queries a remote computer to determine if it supports the WS-Management protocol.
Invokes a method and returns the results of the method call.
Updates a resource.
Sets and gets the number of items in each enumeration batch. (Put)
Sets and gets the maximum amount of time, in milliseconds, that the client application waits for Windows Remote Management to complete its operations. (Put)
|Minimum supported client||Windows Vista|
|Minimum supported server||Windows Server 2008|