For the advance networking function you can use netsh facility on the command line. Here we will make shortcut to it with parameters.The important thing here is to on the Firewall when you finish troubleshooting.Create Shortcut Icons for Enable/Disable.Select the destination where you want to create the shortcut, for example right click on the desktop select New then Shortcut.Then you will see shortcut location box , here add single command from these given below of two:Disable Firewall,netsh firewall set opmode disable,Enable Firewall,netsh firewall set opmode enable,When you will write the correct command you will see the screen asking the name of the shortcut. Write the name like “Disable Firewall”.Now you will see the shortcut icon, here you need to select run as administrator because this shortcut will not work without it.right click on the shortcut and select Properties and then select Shortcut tab.
Properties screen will open where you will see many options from all of those you can see the option of Shortcut key in which you can assign the shortcut key to your shortcut. Then you need to click on the “Advance” button so that you can select “Run as administrator ” to always run the shortcut in administrator mode.Here you have the facility to change the icon of the shortcut from “Change Icon” button. For matching the shortcut you can change the “Look for icons in this file” to the following:%SystemRoot%\system32\imageres.dll,In this screen you have to find red shield icon and green shield icon,Now you can see two shortcuts with proper working,Now if you want to check these shortcuts rather these are working or no then open one of them and then click on the Start menu and open Windows Firewall click on the link “Turn Windows Firewall on or off”.Here you can see that the fire wall is on or off.In this way you can create the shortcut in windows XP. And in the XP you do not need to run as administrator. These all screen shorts are from the Windows Vista.
Shortcut Icon Turn on Windows 7 Firewall