Sometimes you find yourself in a situation where you need to troubleshoot the WinRM service, specifically the fact that you get a message from your monitoring system that the WinRM service isn’t listening on a device.
So, you can logon to the device and use the following command to find the configuration of the WinRM listener:
winrm enumerate winrm/config/listener
It will give you an output something like the following: