命令行添加防火墙入站规则

添加端口:

netsh advfirewall firewall add rule name= "TaiBaoIHRService" dir=in action=allow protocol=TCP localport=8088

添加应用程序:

netsh advfirewall firewall add rule name="TaiBaoIHRService" dir=in action=allow program="H:2.项目58.太平洋保险预发布环境太保一体机发布-2服务器迁移太保一体机发布3.ihr-serviceTechFancier.Console.exe" enable=yes

原文地址:https://www.cnblogs.com/LittleJin/p/14444942.html