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.

MethodDescription
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.

PropertyDescription

BatchItems

Sets and gets the number of items in each enumeration batch.

Error

Gets additional error information in an XML stream for the preceding call to an IWSManSession object method.

Timeout

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

Minimum supported server

Windows Server 2008

Redistributable

WinRM 1.1 (Windows Server 2003 R2, or Windows Server 2003 with SP1)

Header

Wsmandisp.h

IDL

Wsmandisp.idl

Library

WSManAutomation.lib

DLL

Wsmauto.dll

See also

Windows Remote Management Reference

 

 

Show:
© 2014 Microsoft