使用 netsh advfirewall 添加 windows 7 防火墙例外 [英] Use netsh advfirewall to Add windows 7 firewall exception

查看:61
本文介绍了使用 netsh advfirewall 添加 windows 7 防火墙例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我正在使用 netsh 向 Windows 7 添加防火墙例外.我要添加的简单规则是:

Hi I am adding a firewall exception to Windows 7 using netsh. The simple rule i am adding is:

netsh advfirewall firewall add rule name = "The Test App3" dir = in action = allow description = "Smart Cipher inbound messages" program = "C:\temp\a.exe"

问题是在执行此命令后,新规则被添加到防火墙并显示在防火墙控制台中 - 但由于两个原因,它似乎没有正确配置:1. 防火墙控制台中的移除按钮被禁用2.点击详细信息...按钮不显示规则的详细信息,不像其他好规则",只有名称和描述

The problem is that after executing this command a new rule is added to the firewall and is displayed within the firewall console - but it seems it is not properly configured for two reasons: 1. The Remove button in the firewall console is disabled 2. Clicking the Details... button show no details for the rule, unlike other "good rules", but only name and description

请指教

发送

奥伦

推荐答案

仅在您的命令行中添加了配置文件参数,也删除了所有这些空格 ...="... 一切正常.

added only profiles arguments to yours command line also removed all those spaces ...="... all works fine.

ps:Vikram.exe:默认启用=yes (true)

ps: Vikram.exe: default is enabled=yes (true)

这是我最后得到的:

netsh advfirewall 防火墙添加规则名称="Visaris Diagon 3.1Administration" dir=in action=allow profile=any description="Visaris对角 3.1 管理" program="C:\Program Files(x86)\Visaris\Visaris Diagon 3.1\Visaris.Diagon.Administration.exe"

netsh advfirewall firewall add rule name="Visaris Diagon 3.1 Administration" dir=in action=allow profile=any description="Visaris Diagon 3.1 Administration" program="C:\Program Files (x86)\Visaris\Visaris Diagon 3.1\Visaris.Diagon.Administration.exe"

netsh advfirewall 防火墙添加规则名称="Visaris Diagon 3.1Administration" dir=out action=allow profile=any description="Visaris对角 3.1 管理" program="C:\Program Files(x86)\Visaris\Visaris Diagon 3.1\Visaris.Diagon.Administration.exe"

netsh advfirewall firewall add rule name="Visaris Diagon 3.1 Administration" dir=out action=allow profile=any description="Visaris Diagon 3.1 Administration" program="C:\Program Files (x86)\Visaris\Visaris Diagon 3.1\Visaris.Diagon.Administration.exe"

这篇关于使用 netsh advfirewall 添加 windows 7 防火墙例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆