IT Knowledgebase
< All Topics
Print

Quickly Turn ON/OFF Windows Firewall Using Command Line

Windows Firewall on computers running Windows Vista, Windows 7, Windows 8, Windows 8.1 Windows 10, Windows Server 2008 and Windows Server 2012 is enabled by default. You need turn it off for various reasons.

1. Run “CMD” by Run as Administrator

2. Type a command-line below

To turn Off: Netsh Advfirewall set allprofiles state off

To turn On: Netsh Advfirewall set allrprofiles state on

To check the status of Windows Firewall: Netsh Advfirewall show allprofiles

Cr. http://www.windowsnetworking.com/

Messenger