Enabling/Disabling the firewall using command line

Post date: May 25, 2011 11:02:12 AM

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

First open the command prompt:

Windows + R keys) type : cmd

Disable Windows XP firewall

netsh firewall set opmode disable

Enable the Windows XP firewall

netsh firewall set opmode enable