Windows Remote Management ( WinRM ):- Which Network Port?

Background

Earlier I was troubleshooting an application that relies on WinRM.

Based on the error I knew I had network connectivity issue.

Error Message

I do not have the error message captured pictorially.

But, here is a simulation.

Image

Textual


Starting labWebServer01 app pool WebservicesSales...
[labWebServer01] Connecting to remote server labWebServer01 failed with the following
error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that the
computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows
access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote
computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (labWebServer01:String) [], PSRemotingTransportException
    + FullyQualifiedErrorId : WinRMOperationTimeout,PSSessionStateBroken

Troubleshooting

Outline

There are a few ways to troubleshoot network connectivity issues.

For now let us make sure that the destination host has availed WMI and that it is running off his default network port ( 5985 ).

To determine winrm’s listener configuration, we will use “winrm enumerate winrm/config/listener“.

 

WinRM

WinRM – Enumerate Listener

winrm enumerate winrm/config/listener

Syntax
 

winrm enumerate winrm/config/listener

Sample
 

winrm enumerate winrm/config/listener

Output
Output – Image

Output – Text

>winrm enumerate winrm/config/listener
Listener [Source="GPO"]
    Address = *
    Transport = HTTP
    Port = 5985
    Hostname
    Enabled = true
    URLPrefix = wsman
    CertificateThumbprint
    ListeningOn = 10.1.71.31, 127.0.0.1

Explanation
  1. Address
    • Network Bindings
      • *
      • (*) mean all local host network interfaces
  2. Transport Protocol
    • HTTP
  3.  Enabled
    • True
  4. URL Prefix
    • wsman
  5. Certificate Thumbprint
    • Empty
    • Not using HTTPS
  6. Listening On
    • Local Network Interfaces

 

Summary

I give too much time to this Tech stuff.

But, wifey happy she eating well.

She looking good!

 

Listening

Moving on folks, as nothing to see

J. Cole – Grew up fast
Link

 

Young One

As a freshman, J. Cole has Big Sean sitting in.
And, he ain’t even ask for an assist.

 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s