Published by


Brink's Avatar
Administrator

Posts: 16,575

Show Printable Version 


How to Turn On or Off Windows Firewall in Windows 10

information   Information
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





Windows Firewall - Turn On or Off in Windows 10 OPTION ONE Windows Firewall - Turn On or Off 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: 116
Size:  15.0 KB





Windows Firewall - Turn On or Off in Windows 10 OPTION TWO Windows Firewall - Turn On or Off 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:	8 
Size:	111.7 KB 
ID:	111307





Windows Firewall - Turn On or Off in Windows 10 OPTION THREE Windows Firewall - Turn On or Off 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:	12 
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:	11 
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:	10 
Size:	28.4 KB 
ID:	111297





Windows Firewall - Turn On or Off in Windows 10 OPTION FOUR Windows Firewall - Turn On or Off 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:	9 
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:	8 
Size:	28.2 KB 
ID:	111294





Windows Firewall - Turn On or Off in Windows 10 OPTION FIVE Windows Firewall - Turn On or Off 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:	9 
Size:	13.2 KB 
ID:	111299
Click image for larger version. 

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





Windows Firewall - Turn On or Off in Windows 10 OPTION SIX Windows Firewall - Turn On or Off 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

Click image for larger version. 

Name:	Turn_off_Windows_Firewall-PowerShell.png 
Views:	10 
Size:	12.4 KB 
ID:	111301
Click image for larger version. 

Name:	Turn_on_Windows_Firewall-PowerShell.png 
Views:	8 
Size:	12.3 KB 
ID:	111302


That's it,
Shawn