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.
Members
The IWSManSession interface inherits from the IUnknown interface. IWSManSession also has these types of members:
Methods
The IWSManSession interface has these methods.
| Method | Description |
|---|---|
| Create |
Creates a new instance of a resource and returns the URI of the new object. |
| Delete |
Deletes the resource specified in the resource URI. |
| Enumerate |
Enumerates a table, data collection, or log resource. |
| Get |
Retrieves the resource specified by the URI and returns an XML representation of the current instance of the resource. |
| Identify |
Queries a remote computer to determine if it supports the WS-Management protocol |
| Invoke |
Invokes a method and returns the results of the method call. |
| Put |
Updates a resource. |
Properties
The IWSManSession interface has these properties.
| Property | Description |
|---|---|
|
Sets and gets the number of items in each enumeration batch. | |
|
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 the WinRM to complete its operations. |
Requirements
|
Minimum supported client | Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 [desktop apps only] |
|
Redistributable | WinRM 1.1 (Windows Server 2003 R2, Windows Server 2003 with SP1, or Windows XP with SP2) |
|
Header |
|
|
IDL |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012