在Windows防火墙中允许WinRM

Raj*_*aju 2 windows powershell winrm

我使用的是Windows 7机器,安装了windows power shell.如何确保将Windows防火墙配置为允许来自工作站的Windows远程管理连接.例如:netsh advfirewall firewall set rule name ="Windows Remote Management(HTTP-In)"profile = public protocol = tcp localport = 5985 remoteip = localsubnet new remoteip = any

我正在按照上面的命令,但无法配置它.

Lac*_*ite 7

Enable-PSRemoting -force 是你在找什么!

winrm quickconfig是一个很好的预防措施,启动WinRM服务并设置为自动启动服务

但是,如果您要对所有Windows 7计算机执行此操作,可以通过组策略启用此功能