Allow/Block Multiple Programs Through Windows 7 Firewall Quickly.


  • I know how to allow or block a single program through the firewall quite easily, but if I have to do this for several applications, this becomes tedious. Is there any way to allow or block multiple programs quickly in Windows 7 Firewall?

    A third party program maybe? Or just a way to allow/block an entire folder (if so, does this include subfolders)?

    2011年2月3日 20:19



  • Hi wade, 

    If you are in an Active Directory ( enterprise ) using Group Policy Modification + Scripting - its going to be easy.

    But for single stand alone system you can still try. 3rd party there are tons of it but they don't come cheap.

    MVP Windows Security
    2011年2月5日 23:09
  • Wow, thanks. 238 views later and I finally get a response! ;)

    This is a standalone system, Windows 7 Pro 64 bit. So I guess it'll have to be third party, but definitely good to know because I just got my associates from ITT Tech, and hope to go back for my bachelor's once the program starts back up. Just need a better job first for the bills, doh!

    Thanks for the info.


    2011年2月6日 22:08
  • Hi Wade,

    I would like to share a new feature in Windows 7. It is called AppLocker.

    AppLocker provides a simple and powerful structure through two rule actions: allow and deny. It also provides a means to identify exceptions to those actions. Allow action on rules limits execution of applications to an allowed list of applications and blocks everything else. Deny action on rules takes the opposite approach and allows the execution of any application except those on a list of denied applications.

    For more information, you can refer to the following article.

    This Demo demonstrates the main features of AppLocker.

    Best Regards,


    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    2011年2月7日 14:47
  • I had the same problem. I wanted a way of blocking all the .exe files in a folder (and sub folders), so I created my own windows script. You're welcome to use/modify it for your own purposes -


    Charles de Havilland

    • 已建议为答案 SuperGrover7 2012年3月29日 0:14
    • 已标记为答案 Wade8218 2014年4月20日 3:59
    2012年2月20日 3:40
  • just use Firewall App blocker (Portable freeware)

    How to use it:

    • 已编辑 wtarkan 2013年11月2日 9:01
    2012年9月23日 23:30
  • You can use this or search for Windows Firewall Control (there is a small app from which you can block exe's directly from a right click :)
    2013年11月27日 11:52
  • Thanks!
    2015年12月28日 20:29
  • I see you updated your scripts! Nice... I'll check them out next time I need to use something like that. I'd like to share some batch code that I found which will run the script as Admin in the event you forgot that right click goodness. :P

    @echo OFF
    :: BatchGotAdmin
    REM  --> Check for permissions
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    REM --> If error flag set, we do not have admin.
    if '%errorlevel%' NEQ '0' (
        echo Requesting administrative privileges...
        goto UACPrompt
    ) else ( goto gotAdmin )
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        set params = %*:"="
        echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
        del "%temp%\getadmin.vbs"
        exit /B
        pushd "%CD%"
        CD /D "%~dp0"

    2015年12月28日 23:44
  • Thank you very much, I'm needing that.
    You are the best.
    2018年6月12日 10:08