Vista WinRM over OpenWSMAN Setup

Windows Remote Management is one component of Windows Hardware Management features that manage server hardware locally and remotely.

WinRM Client Configuration

  • Install Vista RC1 or higher.
  • Activate “Command Prompt” window with “Administrator privilege.”
  • Click through to Start/All Programs/Accessories
  • Right-click on Command Prompt
  • Click on Run as administrator
  • Press Continue button.
  • Run the following “winrm” commands in the command prompt window to change the default settings:
    winrm set winrm/config/client/auth @{Basic="true"} 
    	
    winrm set winrm/config/client  @{AllowUnencrypted="true"}
    	
    winrm set winrm/config/client  @{TrustedHosts="192.168.1.100"} 
    	

Note: Replace the 192.168.1.100 with the host address of the server hosting the target OpenWSMAN service.

WinRM Service Configuration

  • Run the following “winrm” commands in the command prompt window to enable WinRM firewall exception:
    winrm quickconfig
    	
  • Additionaly, security needs to be untightened bu enabling Basic Authentication and enabling encypred communication (required for testing only):
    winrm set winrm/config/service/auth @{Basic="true"} 
    	
    winrm set winrm/config/service  @{AllowUnencrypted="true"}
    	

WinRM over Openwsman Test

Verify the OpenWSMAN service is running on the target server. Run the following “winrm command” to test the connection:

winrm enumerate http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem -username:wsman -password:secret -r:143.166.157.213:8889/wsman -auth:basic

Output should look something like:

CIM_ComputerSystem
Name = ZPB9K34
CreationClassName = CIM_ComputerSystem
NameFormat = 'other'
Dedicated = null
ResetCapability = 1
PrimaryOwnerName = null
PrimaryOwnerContact = null
EnabledState = 2
OtherEnabledState = null
RequestedState = 2
EnabledDefault = 2
TimeOfLastStateChange = null
InstallDate = null
OperationalStatus = null
Status = null
HealthState = 25
Caption = null
Description
ElementName = server1.domain.com