Megosztás a következőn keresztül:

WinRM Scripting API

Windows Remote Management scripting objects are implemented as a layer above the WS-Management Protocol. The scripting objects enable you to obtain data or manage resources on local and remote computers.

WS-Management Objects

Each scripting object has a corresponding C++ interface. For more information, see WinRM C++ API and Scripting in Windows Remote Management.

The following objects are provided by the WinRM Scripting API.


Defines the user name and password used for remote connections. The user name and password are passed when calling the CreateConnectionOptions method. For more information, see Obtaining Data from a Remote Computer. The corresponding C++ interface is IWSManConnectionOptions.


Represents a collection of results returned from enumerating a resource. For more information, see Enumerating or Listing All the Instances of a Resource. The corresponding C++ interface is IWSManEnumerator.


Supplies the path to a resource. You can use a ResourceLocator object instead of a resource URI in Session object operations, such as Session.Get, Session.Put, or Session.Enumerate. The corresponding C++ interface is IWSManResourceLocator.


Defines the network operations and properties available for the session, such as Session.Get, Session.Enumerate, Session.Invoke. For more information, see Obtaining Data from the Local Computer. The corresponding C++ interface is IWSManSession.


Provides methods and properties used to create a new session or manage an established session. For more information see, Using Windows Remote Management. The corresponding C++ interfaces are IWSMan and IWSManEx.

About Windows Remote Management

Using Windows Remote Management

Scripting in Windows Remote Management

Windows Remote Management Reference