Windows – Disable / Enable firewall from batch

ba20d

Reason:

If you have an application which pop-up firewall window in setup’s run-time will interrupt your installation & you couldn’t automatize it.

The solution is simple. Before you start you installation, disable firewall. When finished it, enable it again. Here are the commands for it:

Commands:


To disable it

netsh firewall set opmode disable
Disable

To enable it

netsh firewall set opmode enable
Enable

 

These command work on every Windows, since Windows XP!

Leave a Reply