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

View Comments (1)

This website uses cookies.