Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 08, 2016, 08:28:49 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Switching Windows firewall on/off?  (Read 3622 times)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Switching Windows firewall on/off?
« on: May 16, 2007, 10:58:55 PM »
i want to quickly enable the "Don't allow exceptions" option in Windows Firewall (see pic) before going online. so i'm wondering which registry keys are involved so that maybe i might be able to whip up a mini AHK script to do that and also toggle on/off the windows firewall.. Any ideas? :)

ws-firewall-1_ver001.png

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 728
  • c++thorpe
    • View Profile
    • Donate to Member
Re: Switching Windows firewall on/off?
« Reply #1 on: May 17, 2007, 09:35:54 AM »
the following command disables exceptions:

netsh firewall set opmode mode = ENABLE exceptions = DISABLE


To allows exceptions:

netsh firewall set opmode mode = ENABLE exceptions = ENABLE


turn off firewall:

netsh firewall set opmode DISABLE


turn on firewall

netsh firewall set opmode ENABLE
« Last Edit: May 17, 2007, 09:41:13 AM by cthorpe »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: Switching Windows firewall on/off?
« Reply #2 on: May 17, 2007, 09:29:45 PM »
thanks a lot, cthorpe.. that is very helpful.. :Thmbsup: