问题描述
当我跑步时 Get-NetFirewallProfile 我看到域配置文件已启用"设置为"True".但是,当我转到控制面板">"Windows防火墙"时,GPO关闭了域配置文件.另外,在具有高级设置"的Windows防火墙中,防火墙状态为关".
When I runGet-NetFirewallProfileI see that the Domain profile Enabled is set to True. However, when I go to Control Panel > Windows Firewall the Domain profile is turned off by the GPO. Also, in Windows Firewall with Advanced Settings, the Firewall state is "Off".
我不确定为什么powershell输出与GUI不同.请帮忙!
I'm not sure why the powershell output is different than the GUI. Please help!
谢谢,aB
推荐答案
此设置有2个存储,一个是本地存储,另一个是一个组策略存储.根据这两个结果计算出防火墙状态.
There are 2 stores for this setting, a local and a Group Policy store. A resulting firewall state is calculated based on these 2.
Elytis Cheng的答案:
The answer from Elytis Cheng:
最后一块是netsh. netsh防火墙显示所有配置文件显示 配置在本地商店中.
The final piece is netsh. netsh firewall show allprofiles shows the configuration in the local store.
这篇关于Powershell输出和GUI之间的Windows防火墙状态不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!