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

添加端口:

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:\02.项目\TechFancier.Console.exe" enable=yes

posted @ 2021-02-25 08:45  HandsomeBoy  阅读(614)  评论(0编辑  收藏  举报