Published by


Brink's Avatar
Administrator

Posts: 22,266

Show Printable Version 


How to Turn On or Off Windows Defender Firewall in Windows 10

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.

This tutorial will show you different ways on how to turn on or off Windows Firewall for network locations (profiles) in Windows 10.

You must be signed in as an administrator to turn on or off Windows Firewall.

Note   Note
Windows Firewall is turned on by default in Windows 10.

You shouldn't turn off Windows Firewall unless you have another third party firewall installed and turned on. Turning off Windows Firewall might make your PC (and your network, if you have one) more vulnerable to unauthorized access to your network.


CONTENTS:
  • Option One: To Turn On Windows Firewall in Windows Firewall by Notification
  • Option Two: To Turn On Windows Firewall in Windows Firewall in Security and Maintenance
  • Option Three: To Turn On Windows Firewall in Windows Firewall Settings
  • Option Four: To Turn Off Windows Firewall in Windows Firewall Settings
  • Option Five: To Turn On or Off Windows Firewall in Command Prompt
  • Option Six: To Turn On or Off Windows Firewall in PowerShell
  • Option Seven: To Turn On or Off Windows Firewall in Windows Defender Security Center





Turn On or Off Windows Firewall in Windows 10 OPTION ONE Turn On or Off Windows Firewall in Windows 10
To Turn On Windows Firewall by Notification

1. Click/tap on the notification (if available) from Windows Firewall to turn on Windows Firewall for all network profiles. (see screenshot below)

Name:  Windows_Firewall_notification.png
Views: 3704
Size:  15.0 KB





Turn On or Off Windows Firewall in Windows 10 OPTION TWO Turn On or Off Windows Firewall in Windows 10
To Turn On Windows Firewall in Security and Maintenance

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

2. Click/tap on the Turn on now button for Network firewall under the Security section for all network profiles. (see screenshot below)

Click image for larger version. 

Name:	Security_and_Maintenance.jpg 
Views:	123 
Size:	111.7 KB 
ID:	111307





Turn On or Off Windows Firewall in Windows 10 OPTION THREE Turn On or Off Windows Firewall in Windows 10
To Turn On Windows Firewall in Windows Firewall Settings

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

2. Do step 3 or step 4 below for how you would like to turn on Windows Firewall.

3. Click/tap on the Use recommended settings button to turn on Windows Firewall for all network profiles. (see screenshot below)

Click image for larger version. 

Name:	Turn_on_Windows_Firewall-1.png 
Views:	89 
Size:	51.3 KB 
ID:	111295

4. Click/tap on the Turn Windows Firewall on or off link on the left side. (see screenshot below)

Click image for larger version. 

Name:	Turn_on_Windows_Firewall-2.png 
Views:	84 
Size:	51.1 KB 
ID:	111296

A) Select (dot) Turn on Windows Firewall for each network profile (ex: domain, private, or public) you want, and click/tap on OK. (see screenshot below)

Click image for larger version. 

Name:	Turn_on_Windows_Firewall-3.png 
Views:	128 
Size:	28.4 KB 
ID:	111297





Turn On or Off Windows Firewall in Windows 10 OPTION FOUR Turn On or Off Windows Firewall in Windows 10
To Turn Off Windows 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 Turn Windows Firewall on or off link on the left side. (see screenshot)

Click image for larger version. 

Name:	Turn_off_Windows_Firewall-1.png 
Views:	93 
Size:	45.7 KB 
ID:	111293

3. Select (dot) Turn off Windows Firewall for each network profile (ex: domain, private, or public) you want, and click/tap on OK. (see screenshot below)

Click image for larger version. 

Name:	Turn_off_Windows_Firewall-2.png 
Views:	99 
Size:	28.2 KB 
ID:	111294





Turn On or Off Windows Firewall in Windows 10 OPTION FIVE Turn On or Off Windows Firewall in Windows 10
To Turn On or Off Windows Firewall in Command Prompt

Note   Note
To see more usage options for the Netsh AdvFirewall Firewall 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 screenshots below)

(Turn on Windows Firewall for all network profiles)
netsh advfirewall set allprofiles state on


(Turn off Windows Firewall for all network profiles)
netsh advfirewall set allprofiles state off


(Turn on Windows Firewall for current network profile)
netsh advfirewall set currentprofile state on


(Turn off Windows Firewall for current network profile)
netsh advfirewall set currentprofile state off


(Turn on Windows Firewall for domain network profile)
netsh advfirewall set domainprofile state on


(Turn off Windows Firewall for domain network profile)
netsh advfirewall set domainprofile state off


(Turn on Windows Firewall for private network profile)
netsh advfirewall set privateprofile state on


(Turn off Windows Firewall for private network profile)
netsh advfirewall set privateprofile state off


(Turn on Windows Firewall for public network profile)
netsh advfirewall set publicprofile state on


(Turn off Windows Firewall for public network profile)
netsh advfirewall set publicprofile state off

Click image for larger version. 

Name:	Turn_off_Windows_Firewall-command.png 
Views:	48 
Size:	13.2 KB 
ID:	111299
Click image for larger version. 

Name:	Turn_on_Windows_Firewall-command.png 
Views:	49 
Size:	13.2 KB 
ID:	111300





Turn On or Off Windows Firewall in Windows 10 OPTION SIX Turn On or Off Windows Firewall in Windows 10
To Turn On or Off Windows Firewall in PowerShell

Note   Note
To see more usage options for the Set-NetFirewallProfile command, see: Set-NetFirewallProfile - TechNet


1. Open an elevated PowerShell.

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

(Turn on Windows Firewall for all network profiles)
Set-NetFirewallProfile -Enabled True


(Turn off Windows Firewall for all network profiles)
Set-NetFirewallProfile -Enabled False


(Turn on Windows Firewall for domain network profile)
Set-NetFirewallProfile -Profile Domain -Enabled True


(Turn off Windows Firewall for domain network profile)
Set-NetFirewallProfile -Profile Domain -Enabled False


(Turn on Windows Firewall for private network profile)
Set-NetFirewallProfile -Profile Private -Enabled True


(Turn off Windows Firewall for private network profile)
Set-NetFirewallProfile -Profile Private -Enabled False


(Turn on Windows Firewall for public network profile)
Set-NetFirewallProfile -Profile Public -Enabled True


(Turn off Windows Firewall for public network profile)
Set-NetFirewallProfile -Profile Public -Enabled False

Name:  Turn_off_Windows_Firewall-PowerShell.png
Views: 3409
Size:  12.4 KB
Name:  Turn_on_Windows_Firewall-PowerShell.png
Views: 3398
Size:  12.3 KB





Turn On or Off Windows Firewall in Windows 10 OPTION SEVEN Turn On or Off Windows Firewall in Windows 10
To Turn On or Off Windows Firewall in Windows Defender Security Center

Note   Note
This option is only available starting with Windows 10 build 15007.


1. Open the Windows Defender Security Center, and click/tap on the Firewall & network protection icon.

2. Click/tap on Private (discoverable) network or Public (non-discoverable) network you want to turn on or off Windows Firewall for. (see screenshot below)

Name:  Windows_Defender_Security_Center-1.jpg
Views: 3291
Size:  65.2 KB

3. Turn on (default) or off Windows Firewall for what you want, and click/tap on Yes when prompted by UAC to approve. (see screenshots below)

4. Check or uncheck (default) Blocks all incoming connections, including those in the list of allowed apps for what you want, and click/tap on Yes when prompted by UAC to approve. (see screenshots below)

5. When finished, you can close the Windows Defender Security Center if you like.

Name:  Windows_Defender_Security_Center-2.jpg
Views: 3270
Size:  61.3 KB
Name:  Windows_Defender_Security_Center-3.jpg
Views: 3278
Size:  62.0 KB


That's it,
Shawn