Hello Thank you for your question and reaching out. I can understand you are having query\issues related to WinRM ports. Please note that Default Ports Specifies the ports that the WinRM service uses for either HTTP or HTTPS. WinRM 2.0: The default HTTP port is 5985. The default HTTPS port is 5986. So you do not need to change this ports and by default WinRM listen to this ports Reference : https://learn.microsoft.com/en-us/windows/win32/winrm/installation-and-configuration-for-windows-remote-management https://social.technet.microsoft.com/wiki/contents/articles/13178.fsrm-port-5985-must-be-allowed-through-the-windows-firewall-for-access-denied-assistance.aspx --If the reply is helpful, please Upvote and Accept as answer--
How to enable port 5985 in WinRM service?
Trần Ngọc Nam
35
Reputation points
Hi everyone, I have a problem when I enable WinRM. I used command line:
presec $computername -h -d powershell.exe -Command "Set-Service -Name WinRM -StartupType Automatic; Start-Service -Name WinRM"
And winRM have run on windows
But I don't find port 5985 on windows, although I configure allow port on firewall. Even, I turn off firewall, mcaffe but I also don't find it. How can to I do to solve it?
Windows for business | Windows Server | User experience | PowerShell
8,329 questions