Quickly Turn ON/OFF Windows Firewall Using Command Line

Windows Firewall on computers running Windows7, Windows 8 and Windows 10 is enabled by default. You may need turn it off/on for numerous reasons.

steps for 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

1 thought on “Quickly Turn ON/OFF Windows Firewall Using Command Line”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.