Skip to main content

WinRM - Testing your WinRM connection

While configuring a new server, I had to activate WinRM(Windows Remote Management).

This is quite easy thanks to the winrm quickconfig command. This command will do the following:

  • Starts the WinRM service, and sets the service startup type to auto-start.
  • Configures a listener for the ports that send and receive WS-Management protocol messages using either HTTP or HTTPS on any IP address.
  • Defines ICF exceptions for the WinRM service, and opens the ports for HTTP and HTTPS.

To test the WinRM connection from another server, you can use the test-wsman command:

PS C:\Users\bawu> test-wsman -computername tstsrv30

If everything is OK, you’ll get the following answer back:

wsmid           : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd

ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd

ProductVendor   : Microsoft Corporation

ProductVersion  : OS: 0.0.0 SP: 0.0 Stack: 3.0