Friday, June 20, 2008

Enable and Disable Windows Firewall Quickly using Command-line

Enable and Disable Windows Firewall Quickly using Command-line

You may use the Netsh.exe command-line in Windows XP and Windows Vista.
Enabling Windows Firewall

Click Start, Run and type:
Netsh firewall set opmode enable

Disabling Windows Firewall
Click Start, Run and type:
Netsh firewall set opmode disable

Windows Firewall status can be verified using Windows Security Center or the Windows Firewall applet.
Note: In Windows Vista you need to run the above commands from an
elevated Command Prompt.
To open an elevated Command Prompt, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.

You may create desktop two shortcuts to enable and disable the Windows Firewall.

To run the commands as administrator, right-click on the shortcut and choose Run as administrator. Or right-click the shortcut properties, click Advanced and tick the Run as administrator checkbox and click OK.
Double-clicking the shortcut run the Netsh… command elevated, after you click the Continue button in the UAC confirmation dialog.

Customize the shortcut icons by picking an appropriate icon from Shell32.dll, Imageres.dll or from xpsp2res.dll (for Windows XP) for easy identification.

*******
Dear Friend,
If this article has helped you, please click on Advertisements on right or bottom, they are my bread and butter. If not, leave your comment, may be I can help you with alternative solution.

No comments:

The Winhelponline Blog

Recent Microsoft KB Articles for Internet Explorer 6.0

Most Recent KBs for Windows XP Media Center Edition 2005

Most Recent KBs for Windows XP Home Edition

Most Recent KBs for Windows XP Media Center Edition 2005

Most Recent KBs for Windows Vista Ultimate

Most Recent KBs for Windows Internet Explorer 7

Most Recent KBs for Office 2003

Most Recent KBs for 2007 Microsoft Office suites