How To Disable/Turn Off Firewall In Windows?

Windows Firewall is used to protect system against network attacks and control network traffic by allowing or blocking different port connections. Windows Firewall is enabled by default for all Windows versions from Windows XP to Windows 10.

Disable/Turn Off Firewall via Windows Settings

Windows Firewall can be disabled from the Windows Settings which is provided with the Windows 8 and Windows 10. Select Start -> Settings -> Update&Security->Windows Security. There you will see the following screen. Select the “Firewall&network protection“.

Disable/Turn Off Firewall via Windows Settings

Click to the active network profile which is “Public network” in this case.

Open Public Profile Firewall Settings

In the following screen in the Microsoft Defender Firewall like turn off the configuration.

Turn Off Microsoft Defender Firewall

Disable/Turn Off Firewall via Windows Services

Windows Firewall is a service and can be disabled via the services too. First we will open the Service Management Console. In order to open services type “services.msc” into the Windows Run or Start Menu like below.

services.msc
Open Services via Windows Run

The Service Manage lists the services with their status information and some action buttons. The Microsoft Firewall is named as “Windows Defender Firewall” as a service. Right-click to the service and select the “Stop”. In some cases, the Stop may be disabled.

Stop Windows Firewall via Services

Disable/Turn Off Firewall via MS-DOS (cmd)

MS-DOs command-line interface provides the netsh command in order to manage network and firewall configuration. In order to change firewall configuration and turn off, the MS-DOS should be opened as Administrator like below.

Run the following netsh command to disable Windows Firewall.

netsh advfirewall set allprofiles state off

Disable/Turn Off Firewall via PowerShell

PowerShell provides the Set-NetFirewallProfile command in order to manage firewall profiles and configuration. In order to change the firewall configuration, the PowerShell should be opened as an Administrator. Open the Start Menu and type “powershell“. The PowerShell icon will be listed below. Right-click to it and then select “Run as administrator“.

Open PowerShell as Administrator

Provide the -Profile parameter for the current profile or all and set the -Enabled parameter as False like below.

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

Use the following Get-NetFirewallProfile command in order to check if all the firewall is disabled.

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

Leave a Comment