How to list the configured listeners on Microsoft Windows Vista or Windows 2008
In a command Window as a local Administrator run the command below:
winrm enumerate winrm/config/Listener
Below is example output.
Listener
Address = *
Transport = HTTP
Port = 80
Hostname = hostname
Enabled = true
URLPrefix = wsman
CertificateThumbprint
ListeningOn = <ipv4 addr>, 127.0.0.1, ::1, <ipv6 addr>, <ipv6 addr>, <ipv6 addr>
Listener
Address = *
Transport = HTTPS
Port = 443
Hostname = hostname
Enabled = true
URLPrefix = wsman
CertificateThumbprint
ListeningOn = <ipv4 addr>, 127.0.0.1, ::1, <ipv6 addr>, <ipv6 addr>, <ipv6 addr>
Note! Windows 2008 R2 now uses the following ports for its default winrm configuration: ports HTTP = 5985 and HTTPS = 5986.