Windows 10: Add or Remove Allowed Apps through Windows Firewall in Windows 10  

    Add or Remove Allowed Apps through Windows Firewall in Windows 10

    Add or Remove Allowed Apps through Windows Firewall in Windows 10

    How to Add or Remove Allowed Apps through Windows Defender Firewall in Windows 10
    Published by Category: Security System
    03 Dec 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 28,495

    Show Printable Version 


    information   Information
    Starting with Windows 10 build 16193, Windows Firewall has been renamed to Windows Defender Firewall.

    Windows Firewall can help prevent hackers or malicious software from gaining access to your PC through the Internet or a network.

    Sometimes you may need to allow an app through Windows Firewall. When you allow an app to communicate though the firewall, it's called adding an exception or rule.

    Usually this will happen automatically. Windows will automatically create exceptions for its own system services and apps. When you install a new app that wants to communicate through the firewall, Windows will prompt you to allow access for it to do so.

    You may also want or need to create an exception manually to allow an app to communicate through the firewall.

    This tutorial will show you different ways on how to manually remove or add apps to be allowed through Windows Firewall in Windows 10.

    You must be signed in as an administrator to remove or add allowed apps through Windows Firewall.

    CONTENTS:
    • Option One: To Allow App through Windows Defender Firewall in Windows Security Alert
    • Option Two: To Allow App through Windows Defender Firewall in Windows Firewall Settings
    • Option Three: To Remove Allowed App in Windows Defender Firewall Settings
    • Option Four: To Allow App through Windows Defender Firewall in Command Prompt
    • Option Five: To Remove Allowed App in Command Prompt
    • Option Six: To Allow App through Windows Defender Firewall in PowerShell
    • Option Seven: To Remove Allowed App in PowerShell





    Add or Remove Allowed Apps through Windows Firewall in Windows 10 OPTION ONE Add or Remove Allowed Apps through Windows Firewall in Windows 10
    To Allow App through Windows Defender Firewall in Windows Security Alert

    1. If prompted by Windows Security Alert, select (check) the network locations (ex: private or public) you want to allow for the app (ex: "Google Chrome"), and click/tap on Allow access to add a rule for the app to allow it through Windows Firewall.
    Note   Note
    If you do not want to allow the app through Windows Firewall, then click/tap on Cancel or close the Windows Security Alert window instead.

    Name:  Windows_Security_Alert.png
Views: 8426
Size:  29.2 KB





    Add or Remove Allowed Apps through Windows Firewall in Windows 10 OPTION TWO Add or Remove Allowed Apps through Windows Firewall in Windows 10
    To Allow App through Windows Defender Firewall in Windows Firewall Settings

    1. Open the Control Panel (icons view), and click/tap on the Windows Firewall icon.

    2. Click/tap on the Allow an app or feature through Windows Firewall link on the left side. (see screenshot below)

    Click image for larger version. 

Name:	Windows_Firewall_allowed_apps-1.png 
Views:	320 
Size:	45.7 KB 
ID:	111623

    3. If this is the first time opening "Allowed apps" while signed in to Windows, then you will need to click/tap on the Change settings button for the settings to no longer be grayed out. (see screenshot below)

    Click image for larger version. 

Name:	Windows_Firewall_allowed_apps-2.png 
Views:	383 
Size:	36.2 KB 
ID:	111624

    4. Click/tap on the Allow another app button. (see screenshot below)

    Click image for larger version. 

Name:	Windows_Firewall_allowed_apps_add-1.png 
Views:	275 
Size:	34.2 KB 
ID:	111615

    5. Click/tap on the Browse button. (see screenshot below)

    Name:  Windows_Firewall_allowed_apps_add-2.png
Views: 8056
Size:  15.3 KB

    6. Navigate to and select the app (ex: "chrome.exe") you want to allow through Windows Firewall, and click/tap on Open. (see screenshot below)

    Click image for larger version. 

Name:	Windows_Firewall_allowed_apps_add-3.png 
Views:	180 
Size:	36.4 KB 
ID:	111617

    7. Click/tap on the Network types button. (see screenshot below)

    Name:  Windows_Firewall_allowed_apps_add-4.png
Views: 8049
Size:  14.3 KB

    8. Select (check) the network locations (ex: private or public) you want to allow for the app (ex: "Google Chrome"), and click/tap on OK. (see screenshot below)

    Name:  Windows_Firewall_allowed_apps_add-5.png
Views: 8046
Size:  9.2 KB

    9. Click/tap on the Add button. (see screenshot below)

    Name:  Windows_Firewall_allowed_apps_add-6.png
Views: 8066
Size:  14.3 KB

    10. The app (ex: "Google Chrome") has now been added as a rule to be allowed through Windows Firewall. Click/tap on OK. (see screenshot below)

    Click image for larger version. 

Name:	Windows_Firewall_allowed_apps_add-7.png 
Views:	900 
Size:	34.3 KB 
ID:	111635

    11. You can now close Windows Firewall settings if you like.





    Add or Remove Allowed Apps through Windows Firewall in Windows 10 OPTION THREE Add or Remove Allowed Apps through Windows Firewall in Windows 10
    To Remove Allowed App in Windows Defender Firewall Settings

    1. Open the Control Panel (icons view), and click/tap on the Windows Firewall icon.

    2. Click/tap on the Allow an app or feature through Windows Firewall link on the left side. (see screenshot below)

    Click image for larger version. 

Name:	Windows_Firewall_allowed_apps-1.png 
Views:	320 
Size:	45.7 KB 
ID:	111623

    3. If this is the first time opening "Allowed apps" while signed in to Windows, then you will need to click/tap on the Change settings button for the settings to no longer be grayed out. (see screenshot below)

    Click image for larger version. 

Name:	Windows_Firewall_allowed_apps-2.png 
Views:	383 
Size:	36.2 KB 
ID:	111624

    4. Select (highlight) the app (ex: "Google Chrome") rule you want to remove, and click/tap on the Remove button. (see screenshot below)

    Click image for larger version. 

Name:	Windows_Firewall_allowed_apps_remove-1.png 
Views:	416 
Size:	38.7 KB 
ID:	111621

    5. Click/tap on Yes to confirm. (see screenshot below)

    Name:  Windows_Firewall_allowed_apps_remove-2.png
Views: 8056
Size:  8.5 KB

    6. The app (ex: "Google Chrome") has now been removed as a rule. Click/tap on OK. (see screenshot below)

    Click image for larger version. 

Name:	Windows_Firewall_allowed_apps_remove-3.png 
Views:	321 
Size:	34.7 KB 
ID:	111640

    7. You can now close Windows Firewall settings if you like.





    Add or Remove Allowed Apps through Windows Firewall in Windows 10 OPTION FOUR Add or Remove Allowed Apps through Windows Firewall in Windows 10
    To Allow App through Windows Defender Firewall in Command Prompt

    Note   Note
    To see more usage options for the Netsh AdvFirewall Firewall add rule command, see: Netsh AdvFirewall Firewall Commands - TechNet

    1. Open an elevated command prompt.

    2. Enter the command below you want to use into the elevated command prompt, and press Enter. (see screenshot below)

    (Allow app)
    netsh advfirewall firewall add rule name="app name" dir=in action=allow program="Full path of .exe" enable=yes

    OR

    (Block app)
    netsh advfirewall firewall add rule name="app name" dir=in action=block program="Full path of .exe" enable=yes

    Note   Note
    Substitute app name in the command above with the actual name of the app (ex: "Google Chrome").

    Substitute Full path of .exe in the command above with the actual full path to the .exe file (ex: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") of the app.

    For example:
    Code:
    netsh advfirewall firewall add rule name="Google Chrome" dir=in action=allow program="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" enable=yes

    Click image for larger version. 

Name:	Allow_app_through_Windows_Firewall_command.png 
Views:	168 
Size:	16.0 KB 
ID:	111626

    3. When finished, you can close the elevated command prompt if you like.





    Add or Remove Allowed Apps through Windows Firewall in Windows 10 OPTION FIVE Add or Remove Allowed Apps through Windows Firewall in Windows 10
    To Remove Allowed App in Command Prompt

    Note   Note
    To see more usage options for the Netsh AdvFirewall Firewall delete rule command, see: Netsh AdvFirewall Firewall Commands - TechNet

    1. Open an elevated command prompt.

    2. Enter the command below into the elevated command prompt, and press Enter. (see screenshot below)

    netsh advfirewall firewall show rule name=all >"%UserProfile%\Desktop\WindowsFirewallRules.txt"

    Click image for larger version. 

Name:	Show_Windows_Firewall_rules_command.png 
Views:	109 
Size:	16.1 KB 
ID:	111625

    3. You will now have a WindowsFirewallRules.txt file saved to your desktop containing a list of all Windows Firewall rules.

    4. Open the WindowsFirewallRules.txt file, and make note of the Rule Name (ex: "Google Chrome") of the app you want to remove all rules for. (see screenshot below)

    Name:  Delete_Windows_Firewall_rule_command-2.png
Views: 8062
Size:  13.9 KB

    5. Enter the command below into the elevated command prompt, and press Enter. (see screenshot below)

    netsh advfirewall firewall Delete rule name="Rule Name"

    Note   Note
    Substitute Rule Name in the command above with the actual rule name (ex: "Google Chrome") you want to remove from step 4 above.

    For example: netsh advfirewall firewall Delete rule name="Google Chrome"

    Click image for larger version. 

Name:	Delete_Windows_Firewall_rule_command.png 
Views:	132 
Size:	15.4 KB 
ID:	111627

    6. When finished, you can close the elevated command prompt if you like.





    Add or Remove Allowed Apps through Windows Firewall in Windows 10 OPTION SIX Add or Remove Allowed Apps through Windows Firewall in Windows 10
    To Allow App through Windows Defender Firewall in PowerShell

    Note   Note
    To see more usage options for the New-NetFirewallRule command, see: New-NetFirewallRule - TechNet

    1. Open an elevated PowerShell.

    2. Enter the command below into the elevated PowerShell, and press Enter. (see screenshot below)

    (Allow app)
    New-NetFirewallRule -DisplayName "app name" -Direction Inbound -Program "Full path of .exe" -Action Allow

    OR

    (Block app)
    New-NetFirewallRule -DisplayName "app name" -Direction Inbound -Program "Full path of .exe" -Action Block

    Note   Note
    Substitute app name in the command above with the actual name of the app (ex: "Google Chrome").

    Substitute Full path of .exe in the command above with the actual full path to the .exe file (ex: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") of the app.

    For example:
    Code:
    New-NetFirewallRule -DisplayName "Google Chrome" -Direction Inbound -Program "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -Action Allow

    Click image for larger version. 

Name:	Allow_app_through_Windows_Firewall_PowerShell.png 
Views:	243 
Size:	37.3 KB 
ID:	111629

    3. When finished, you can close the elevated PowerShell if you like.





    Add or Remove Allowed Apps through Windows Firewall in Windows 10 OPTION SEVEN Add or Remove Allowed Apps through Windows Firewall in Windows 10
    To Remove Allowed App in PowerShell

    Note   Note
    To see more usage options for the Remove-NetFirewallRule command, see: Remove-NetFirewallRule - TechNet

    1. Open an elevated PowerShell.

    2. Enter the command below into the elevated PowerShell, and press Enter. (see screenshot below)

    Show-NetFirewallRule | Out-File "$env:userprofile\Desktop\WindowsFirewallRules.txt"

    Click image for larger version. 

Name:	Show_Windows_Firewall_rules_PowerShell.png 
Views:	109 
Size:	15.9 KB 
ID:	111628

    3. You will now have a WindowsFirewallRules.txt file saved to your desktop containing a list of all Windows Firewall rules.

    4. Open the WindowsFirewallRules.txt file, and make note of the DisplayName (ex: "Google Chrome") of the app you want to remove all rules for. (see screenshot below)

    Click image for larger version. 

Name:	Delete_Windows_Firewall_rule_PowerShell-2.png 
Views:	124 
Size:	23.2 KB 
ID:	111637

    5. Enter the command below into the elevated PowerShell, and press Enter. (see screenshot below)

    Remove-NetFirewallRule -DisplayName "DisplayName"

    Note   Note
    Substitute DisplayName in the command above with the actual rule name (ex: "Google Chrome") you want to remove from step 4 above.

    For example: Remove-NetFirewallRule -DisplayName "Google Chrome"

    Click image for larger version. 

Name:	Delete_Windows_Firewall_rule_PowerShell.png 
Views:	93 
Size:	15.1 KB 
ID:	111630

    6. When finished, you can close the elevated PowerShell if you like.


    That's it,
    Shawn


  1.    28 Nov 2017 #1

    remove button not active my firewall please help me
      My ComputerSystem Spec


  2. Posts : 3,278
    64bit Win 10 Pro ver 1709 Build 16299.371 and W10 Insider Builds 17134.1 and 17643
       28 Nov 2017 #2

    rmzns said: View Post
    remove button not active my firewall please help me
    Hello nrmzns, welcome to TenForums!

    To see the remove button make sure you are signed in as an administrator and have clicked on the change settings button. To check if you are an administrator use the following tutorial: Determine Account Type in Windows 10
      My ComputersSystem Spec


 

Tutorial Categories

Add or Remove Allowed Apps through Windows Firewall in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
Solved Disable Windows firewall when running 3rd party firewall? in AntiVirus, Firewalls and System Security
Quick question - I use Comodo firewall free edition as I like the functionality and interface. Should I disable Windows firewall since I have Comodo running? If so, how do I do that?
Several Windows programs do this but also software from other places cause this error. It infuriates and angers me to no end. See the image I posted? How can I get around or avoid or stop this error?? Please and thanks
Solved Windows Firewall Control Blocks Store From Downloading New Apps in AntiVirus, Firewalls and System Security
Not sure if this is the correct folder. Updated to Windows Anniversary - no problems. However, now I have the problem as stated in the title. If I turn Windows Firewall Control (v4.8.3.0) off the apps download and install fine. With WFC...
Windows Firewall - "allowed apps and features" in AntiVirus, Firewalls and System Security
Is there a description of all the entries in Windows 10 Firewall - "allowed apps and features" listed somewhere? "Details" are not available for many or not helpful
Basically, when I setup my system I run my primary user as an admin to install and set everything the way I like it. After a week or so I remove my primary user from the Administrators group. I then use the default Admin account (usually...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 20:10.
Find Us