Share via

How to enable port 5985 in WinRM service?

Trần Ngọc Nam 35 Reputation points
2023-04-04T10:26:48.17+00:00

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 User's image

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

1 answer

Sort by: Most helpful
  1. Limitless Technology 45,231 Reputation points
    2023-04-05T10:03:51.8733333+00:00

    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--

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.