How to disable windows firewall settings

﹥>﹥吖頭↗ 提交于 2019-12-08 12:16:00

问题


I am doing firewall related work. I can turn ON/OFF windows firewall programatically using COM interface but I want to disable turn ON/OFF options. Is there any COM interface, Windows API present for that?


回答1:


This behavior is triggered by the presence of Group Policy for the firewall, specifically the Windows Firewall: Protect all Network connections setting.

As per How to disable Windows Firewall using python, you need to enable this setting in any of the available ways outlined there.




回答2:


You can Turn off windows firewall through command line.Just paste this command in your command prompt.

netsh advfirewall set currentprofile state off



来源:https://stackoverflow.com/questions/25022533/how-to-disable-windows-firewall-settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!