Allowing WinRM in the Windows Firewall

Raju picture Raju · Feb 22, 2017 · Viewed 28.6k times · Source

I am using windows 7 machine, installed windows power shell. How to ensure that the Windows Firewall is configured to allow Windows Remote Management connections from the workstation. For example: netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" profile=public protocol=tcp localport=5985 remoteip=localsubnet new remoteip=any

I'm following above command, but not able to configure it.

Answer

Lachie White picture Lachie White · Feb 22, 2017

Enable-PSRemoting -force Is what you are looking for!

winrm quickconfigis good precaution to take as well, starts WinRM Service and sets to service to Auto Start

However if you are looking to do this to all Windows 7 Machines you can enable this via Group Policy