windows firewall命令行配置
windows firewall防火墙配置
1.开启防火墙 netsh advfirewall set allprofiles state on 2.关闭防火墙 netsh advfirewall set allprofiles state off 3.恢复防火墙默认设置 netsh advfirewall reset 4.添加远程桌面入站规则允许端口3389 netsh advfirewall firewall add rule name=远程桌面(TCP-In-3389) protocol=TCP dir=in localport=3389 action=allow 5.删除规则 netsh advfirewall firewall delete rule name=远程桌面(TCP-In-3389) 6.导出防火墙配置到文件 netsh advfirewall export c:\adv.pol 7.导入防火墙配置文件到系统中 netsh advfirewall import c:\adv.pol

浙公网安备 33010602011771号