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 [ http://msdn.microsoft.com/en-us/library/aa384465(VS.85).aspx ] on local and remote computers.
WS-Management Objects
Each scripting object has a corresponding C++ interface. For more information, see WinRM C++ API [ http://msdn.microsoft.com/en-us/library/aa384468(VS.85).aspx ] and Scripting in Windows Remote Management [ http://msdn.microsoft.com/en-us/library/aa384438(VS.85).aspx ] .
The following table lists objects provided by the WinRM Scripting API.
| Object | Description |
|---|
WSMan [ http://msdn.microsoft.com/en-us/library/aa384538(VS.85).aspx ] | Provides methods and properties used to create a new session or manage an established session. For more information see, Using Windows Remote Management [ http://msdn.microsoft.com/en-us/library/aa384462(VS.85).aspx ] . The corresponding C++ interfaces are IWSMan [ http://msdn.microsoft.com/en-us/library/aa384374(VS.85).aspx ] and IWSManEx [ http://msdn.microsoft.com/en-us/library/aa384385(VS.85).aspx ] .
|
ConnectionOptions [ http://msdn.microsoft.com/en-us/library/aa384334(VS.85).aspx ] | Defines the user name and password used for remote connections. The user name and password are passed when calling the CreateConnectionOptions [ http://msdn.microsoft.com/en-us/library/aa384578(VS.85).aspx ] method. For more information, see Obtaining Data from a Remote Computer [ http://msdn.microsoft.com/en-us/library/aa384423(VS.85).aspx ] . The corresponding C++ interface is IWSManConnectionOptions [ http://msdn.microsoft.com/en-us/library/aa384377(VS.85).aspx ] .
|
Session [ http://msdn.microsoft.com/en-us/library/aa384439(VS.85).aspx ] | Defines the network operations and properties available for the session, such as Session.Get [ http://msdn.microsoft.com/en-us/library/aa384456(VS.85).aspx ] , Session.Enumerate [ http://msdn.microsoft.com/en-us/library/aa384454(VS.85).aspx ] , Session.Invoke [ http://msdn.microsoft.com/en-us/library/aa384458(VS.85).aspx ] . For more information, see Obtaining Data from the Local Computer [ http://msdn.microsoft.com/en-us/library/aa384424(VS.85).aspx ] . The corresponding C++ interface is IWSManSession [ http://msdn.microsoft.com/en-us/library/aa384408(VS.85).aspx ] .
|
Enumerator [ http://msdn.microsoft.com/en-us/library/aa384360(VS.85).aspx ] | Represents a collection of results returned from enumerating a resource. For more information, see Enumerating or Listing All the Instances of a Resource [ http://msdn.microsoft.com/en-us/library/aa384354(VS.85).aspx ] . The corresponding C++ interface is IWSManEnumerator [ http://msdn.microsoft.com/en-us/library/aa384381(VS.85).aspx ] .
|
ResourceLocator [ http://msdn.microsoft.com/en-us/library/aa384428(VS.85).aspx ] | Supplies the path to a resource. You can use a ResourceLocator object instead of a resource URI [ http://msdn.microsoft.com/en-us/library/aa384465(VS.85).aspx ] in Session object operations, such as Session.Get, Session.Put [ http://msdn.microsoft.com/en-us/library/aa384459(VS.85).aspx ] , or Session.Enumerate. The corresponding C++ interface is IWSManResourceLocator [ http://msdn.microsoft.com/en-us/library/aa384399(VS.85).aspx ] .
|
See Also
- About Windows Remote Management [ http://msdn.microsoft.com/en-us/library/aa384291(VS.85).aspx ]
- Using Windows Remote Management [ http://msdn.microsoft.com/en-us/library/aa384462(VS.85).aspx ]
- Scripting in Windows Remote Management [ http://msdn.microsoft.com/en-us/library/aa384438(VS.85).aspx ]
- Windows Remote Management Reference [ http://msdn.microsoft.com/en-us/library/aa384466(VS.85).aspx ]
Send comments about this topic to Microsoft
Build date: 11/2/2009