Shop PCMemoryStore.com Today! MacSpeech Dictate 1.5

Sunday, April 5, 2009

Create a Shortcut Icon or Hotkey to Turn Windows Vista Firewall On or Off

·

When you are troubleshooting network problems, one of the first things to do is disable the built-in Windows Firewall… but there are just way too many steps required to the firewall on and off. Can't we make a simple shortcut icon instead?

Naturally we can, using the built-in netsh utility that is usually used on the command line to perform advanced networking functions. We'll simply create a shortcut to it with the appropriate parameters.

Note: Always remember to turn the Firewall back on after you are done troubleshooting, especially if you use public wireless networks.

Create Shortcut Icons for Enable/Disable

Right-click on the desktop or elsewhere, and choose New \ Shortcut from the menu.

Then in the shortcut location box, you'll add one of two commands listed below.

Disable Firewall

netsh firewall set opmode disable

Enable Firewall

netsh firewall set opmode enable

Once you've added the correct command, go to the next screen and give the shortcut a helpful name like "Disable Firewall"

At this point you should have a shortcut icon, but it won't work yet without choosing to run as administrator.

Right-click the shortcut and choose Properties, and then choose the shortcut tab.

In this screen you can assign a shortcut key for this shortcut by adding it into the Shortcut key box. The most important step is to click the Advanced button, so we can choose "Run as administrator" to always run the shortcut in administrator mode.

You can also change the icon by using the Change Icon button. If you want the shortcuts to really match, you can change the "Look for icons in this file" to the following:

%SystemRoot%\system32\imageres.dll

In that file you can find the red shield icon as well as the green one…

So now I have two shortcuts that not only look good, but are functional.

If you want to verify that the shortcuts are working, use one of them and then open Windows Firewall through the start menu, and click on the link for "Turn Windows Firewall on or off"

Then you should be able to see that the firewall is either on or off.

The same shortcuts should also work on Windows XP, even though the screenshots are all for Windows Vista. You don't need to run as administrator in XP, of course.

Note: Using these shortcuts will very briefly flash the command prompt window on the screen.

Bookmark and Share


We hope you liked the above post, you can get more such updates, get these posts via email for free.

0 comments:

Post a Comment

Related Articles


Related Article Widget by Hoctro

About Me


嗨,我是花,居住在印度兴奋的Windows,Linux中国的外籍人士和所有高科技的东西

Hi, I am Hua, a chinese expat residing in India excited about windows, linux and all things tech

Receive updates for free

Enter your email address:

Delivered by FeedBurner

Mobile Version

Bookmark

Bookmark and Share

Blog Archive

matchmaker.com gold membership valentine's