Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 table lists objects provided by the WinRM Scripting API.

ObjectDescription

ConnectionOptions

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.

Enumerator

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.

ResourceLocator

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.

Session

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.

WSMan

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.

 

Related topics

About Windows Remote Management
Using Windows Remote Management
Scripting in Windows Remote Management
Windows Remote Management Reference

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.