Enabling/Disabling the firewall using command line
Under Windows XP SP2, it is possible to enable/ disable the firewall with the following command lines:
Disable Windows XP firewall
netsh firewall set opmode disable
Enable the Windows XP firewall
netsh firewall set opmode enable
We create a batch file to enable or disable the firewall by simply double-clicking on the pad by inserting one of two lines above, then saving the file giving the extension
.bat (ex: Activatefirewall.BAT).