Windows Firewall is a utility in Microsoft Windows to protect its users from malicious attack through network. If windows Firewall is disabled then u are more vulnerable to attacks. So Today I will discuss how to disable/Enable Windows firewall through Command Prompt or batch File. Whenever a hacker is creating a virus or Trojan he always tries to disable victim’s Firewall to make him more vulnerable.


Disabling Windows Firewall through command Prompt:
Open Command Prompt and type : netsh firewall set opmode disable
For Enabling Windows Firewall through command prompt:
Open Command Prompt and type : netsh firewall set opmode enable
If You want to make a batch file for Disabling/Enabling Firewall, Then Write above commands inNotepad and save them as filename.bat where filename is name of batch program you want to set.
There are some more command line options with which you can play :
1.) If you want to see configuration of Windows Firewall, Then:
Open Command Prompt and type : netsh firewall show config
2.) If you want to reset your Firewall to default setting then you can type: netsh firewall reset
