Windows Firewall - Turn On or Off Shortcuts

How to Create a "Turn Windows Firewall On or Off" Shortcut

information   Information
This will show you how to download or create two shortcuts to make it easy to turn Windows Firewall on or off as needed in Vista and Windows 7.
Note   Note
To manually turn Windows Firewall On or Off, and to verify that these shortcuts worked, see: How to Turn Windows Firewall On or Off in Vista
warning   Warning
The Windows Firewall and Base Filtering Engine services need to be set as Started and Automatic for Windows Firewall to be able to be turned on or off with these shortcuts.

Using the shortcut to turn on Windows Firewall will not also turn on the Block all incoming connections option. That will have to be manually done if wanted.





OPTION ONE
To Download the Shortcut

1. Click on the Download button below to dowload the file below.​
Windows Firewall Off-On Shortcuts.zip
download

2. Click on Save and save the ZIP file to the Desktop.​
3. Right click on the ZIP file and click on Open.​
4. If prompted by UAC, then click on Allow.​
5. Extract (drag and drop) both of the Turn Off Windows Firewall and Turn On Windows Firewall shortcuts to the desktop.​
6. Right click on the each extracted shortcut one at a time, and click on Properties, General tab, and on the Unblock button. (See screenshot below)​
NOTE: If you do not have a Unblock button under the General tab, then the shortcut is already unblocked and you can continue on to step 5.​
6. You can now Pin to Taskbar (Windows 7 only) or Pin to Start Menu this shortcut, assign a keyboard shortcut to it, or move it where you like for easy use.​
7. When done, you can delete the downloaded .zip file if you like.​



OPTION TWO
To Manually Create the Shortcut


Note   Note
You will need to repeat this for each of the On and Off shortcut to create both of them.

1. Right click on a empty area of desktop and click on New and Shortcut.​
2. For a Turn Off Windows Firewall Shortcut
A) Type netsh firewall set opmode disable and click on Next. (See left screenshot below)​
Off-1.jpg

B) Type Turn Off Windows Firewall and click on Finish. (See left screenshot below)​
NOTE: You can name this shortcut anything you like.​
Off-2.jpg

C) Go to step 4.​

3. For a Turn On Windows Firewall Shortcut
A) Type netsh firewall set opmode enable and click on Next. (See screenshot below)​
On-1.jpg

B) Type Turn On Windows Firewall and click on Finish. (See left screenshot below)​
NOTE: You can name this shortcut anything you like.​
On-2.jpg

4. Click on the Change Icon button. (See screenshot below)​
Off-3.jpg

5. Click on OK. (See screenshot below)​
Off-5.jpg

6. Copy the location below, then right click in the line next to the Browse button and click on Paste. (See screenshots below steps 7 and 8)​
NOTE: You could also click the Browse button and navigate to C:\Windows\System32\FirewallControlPanel.exe instead.​
%SystemRoot%\System32\FirewallControlPanel.exe

7. For Turn Off Windows Firewall Shortcut
A) Select the icon boxed in blue and click on OK. (See screenshot below)​
Off-6.jpg

B) Go to step 9.​

8. For Turn On Windows Firewall Shortcut
A) Select the icon boxed in blue and click on OK. (See screenshot below)​
On-6.jpg

9. Click on Apply. (See screenshot below step 4)​
10. Click on the Advanced button. (See screenshot below step 6)​
11. Check the Run as administrator box and click on OK. (See screenshot below)​
Off-4.jpg

12. Click on OK. (See screenshot below step 4)​
13. Repeat for the other (On or Off) shortcut if needed.​
NOTE: After you click on the (On or Off) shortcut, you will need to click on Continue for the UAC prompt.​
14. You can now Pin to Taskbar (Windows 7 only) or Pin to Start Menu these shortcuts, assign a keyboard shortcut to it, or move it where you like for easy use.​
That's it,
Shawn


 

Attachments

Last edited:
This was pretty cool, but there seems to be an issue.


‘Block all incoming connections’ is not selected when these shortcuts are used. In fact, if a user goes the Control Panel or Start Search way and elects to block all incoming connections, and then uses the Disable shortcut to disable the firewall, the Enable shortcut does not switch the ‘block all incoming connections’ option back on. Any advice?
 

My Computer

Hello Ronin,

Correct. Using the shortcut to turn on Windows Firewall will not also turn on the Block all incoming connections option. That will have to be manually done if wanted. :(
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
Back
Top