Windows Firewall Enable and Disable via Command Line

Tags: windows, firewall, command line

This is how you do it using a command prompt:

  • To Turn Off:
  • NetSh Advfirewall set allprofiles state off
  • To Turn On:
  • NetSh Advfirewall set allprofiles state on
  • To check the status of Windows Firewall:
  • Netsh Advfirewall show allprofiles

No Comments

You must log on to comment.