在Windows 8或Windows 2012 R2上, 使用下面的命令:

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

在更早版本的Windows上, 使用netsh命令:

netsh advfirewall set allprofiles state on

 

资料来源

================

PowerTip: Use PowerShell to Enable the Windows Firewall

http://blogs.technet.com/b/heyscriptingguy/archive/2012/10/28/powertip-use-powershell-to-enable-the-windows-firewall.aspx

相关文章:

  • 2021-09-17
  • 2022-01-22
  • 2022-12-23
  • 2021-10-05
  • 2022-01-07
  • 2022-12-23
  • 2021-05-13
  • 2022-02-12
猜你喜欢
  • 2021-05-29
  • 2022-02-21
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
相关资源
相似解决方案