command line turn on /off windows firewall

With the command line

Under Windows XP SP2, it is possible to enable or disable the firewall with the following command lines.

First open the command prompt: (Windows + R keys) and type : cmd
Disable the Windows XP firewall:
netsh firewall set opmode disable
Enable the Windows XP firewall:
netsh firewall set opmode enable

You may also like...