WinRM C++ API

The Windows Remote Management interfaces can be used to obtain data or manage resources on a remote computer. This API is intended primarily for internal use. We recommend using the WinRM Client Shell API instead whenever possible. The interfaces closely correspond to the WinRM Scripting API.

The WinRM interfaces that inherit directly from IDispatch each have a corresponding scripting object. For more information, see the WinRM Scripting API.

For multithreaded applications, WinRM does not support separate threads accessing the same IWSMAN object.

The following interfaces are provided by WinRM.

IWSMan

Provides methods and properties used to create a new session and manage an established session. WSMan is the corresponding scripting object.

IWSManEx

Provides methods and properties used to create a new IWSManResourceLocator. This method is available for the WSMan scripting object.

IWSManConnectionOptions

Defines the user name and password used for remote connections. ConnectionOptions is the corresponding scripting object.

IWSManSession

Defines the network operations and properties available for the session. Session is the corresponding scripting object.

IWSManEnumerator

Represents a collection of results returned from enumerating a resource. Enumerator is the corresponding scripting object.

IWSManResourceLocator

Supplies the path to a resource. You can use an IWSManResourceLocator object instead of a resource URI in Session object operations. ResourceLocator is the corresponding scripting object.

Windows Remote Management Reference