topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday October 10, 2024, 8:44 pm
  • Proudly celebrating 15+ 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 6198 times)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Switching Windows firewall on/off?
« on: May 16, 2007, 10:58 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: 738
  • c++thorpe
    • View Profile
    • Donate to Member
Re: Switching Windows firewall on/off?
« Reply #1 on: May 17, 2007, 09:35 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 AM by cthorpe »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: Switching Windows firewall on/off?
« Reply #2 on: May 17, 2007, 09:29 PM »
thanks a lot, cthorpe.. that is very helpful.. :Thmbsup: