Редагувати

Поділитися через


Managed Reference for WinRM Windows PowerShell Command Classes

Windows Remote Management 2.0 (WinRM) can use Windows PowerShell cmdlets for system management. Windows PowerShell cmdlets enable an administrator to configure WinRM and to get data or manage resources.

Windows PowerShell cmdlets for WinRM provide the same functionality as the winrm command line utility. However, Windows PowerShell also does the following:

  • Automates WinRM tasks in an extensible and management-oriented scripting language.
  • Provides a single tool for all management tasks.

See Windows PowerShell for more information.

WS-Management Windows PowerShell Classes

Namespace: Microsoft.WsMan.Management

Assembly: System.Management.Automation

The following WinRM command classes are implemented by Windows PowerShell. These classes are included in this software development kit (SDK) for completeness only. The members of these classes cannot be used directly nor should they be used to derive other classes.

Class Description
ConnectWSManCommand Connects to the WinRM service on a remote computer.
See the Connect-WSMan cmdlet for examples and detailed information about the parameters.
DisableWSManCredSSPCommand Disables CredSSP authentication on a client.
See the Disable-WSManCredSSP cmdlet for detailed information about the parameters and for examples.
DisconnectWSManCommand Disconnects from the WinRM service on a remote computer.
See the Disconnect-WSMan cmdlet for examples and detailed information about the parameters.
EnableWSManCredSSPCommand Enables CredSSP authentication on the client.
See the Enable-WSManCredSSP cmdlet for examples and detailed information about the parameters.
GetWSManCredSSPCommand Gets the CredSSP-related configuration for the client.
See the Get-WSManCredSSP cmdlet for examples and detailed information about the parameters.
GetWSManInstanceCommand Displays management information for a resource instance specified by a Resource URI.
See the Get-WSManInstance cmdlet for examples and detailed information about the parameters.
InvokeWSManActionCommand Invokes an action on the target object specified by the Resource URI and selectors.
See the Invoke-WSManAction cmdlet for examples and detailed information about the parameters.
NewWSManInstanceCommand Creates a new instance of a management resource.
See the New-WSManInstance cmdlet for examples and detailed information about the parameters.
NewWSManSessionOptionCommand Creates a WinRM Session option hash table to use as input parameters for the following WSMan cmdlets: Get-WSManInstance, Set-WSManInstance, Invoke-WSManAction, and Connect-WSMan.
See the New-WSManSessionOption for examples and detailed information about the parameters.
RemoveWSManInstanceCommand Deletes a management resource instance.
See the Remove-WSManInstance cmdlet for examples and detailed information about the parameters.
SetWSManInstanceCommand Modifies management information related to a resource.
See the Set-WSManInstance cmdlet for examples and detailed information about the parameters.
SetWSManQuickConfigCommand Configures the local computer for remote management.
See the Set-WSManQuickConfig cmdlet for examples and detailed information about the parameters.
TestWSManCommand Tests whether the WinRM service is running on a local or remote computer.
See the Test-WSMan cmdlet for examples and detailed information about the parameters.
SessionOption Defines a set of extended options for the WS-Management session.
See the Connect-WSMan cmdlet for examples and detailed information about the possible values.

WS-Management Windows PowerShell Enumerations

The following enumerations are implemented by Windows PowerShell. These enumerations are included in this software development kit (SDK) for completeness only.

Enumeration Description
AuthenticationMechanism Specifies the authentication mechanism to be used at the server.
See the Connect-WSMan cmdlet for examples and detailed information about the possible values.
ProxyAccessType Specifies the mechanism by which the proxy server is located.
See the New-WSManSessionOption cmdlet for examples and detailed information about the possible values.
ProxyAuthentication Specifies the authentication method to use at the proxy.
See the New-WSManSessionOption cmdlet for examples and detailed information about the possible values.