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

One Comment

Add a Comment

Your email address will not be published. Required fields are marked *

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