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.
Enable-PSRemoting -force
Is what you are looking for!
winrm quickconfig
is 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