GuidesHow To'sHow To Disable Firewall

How To Disable Firewall [All Methods Guide]

Learn how to disable the firewall using the control panel, command prompt, Windows Security app, and more.

Many times, you may need to temporarily disable the firewall on your Windows device to allow a specific program or task to run. However, your computer is at risk when the firewall is disabled. Furthermore, you must learn how to disable the firewall properly to prevent doing more harm than good. 

Key Takeaways

  • Knowing the potential security risks and weighing the advantages against the drawbacks is essential before turning off the firewall.
  • You can disable the firewall using the control panel, command prompt, group policy editor, and more. 
  • Your computer could be exposed to security risks if the firewall is disabled. It is recommended to enable the firewall as soon as possible or implement alternative security measures to protect your computer.

How To Disable Firewall In Windows

To disable the firewall, you need to rely on one of the following methods: 

  • Using Control Panel
  • Using Command Prompt
  • Using Group Policy Editor
  • Using Windows Security App
  • For a Single Program
  • Using Windows PowerShell
  • Using Registry Editor

Using Control Panel

Here is how to disable the firewall using the control panel. 

Access Control Panel

  1. In the lower-left corner of the screen, click the Start button.
  2. Go to Start Menu, then navigate to Settings.
  3. You will see the Control Panel option there; click on that.

Find The Windows Defender Firewall

  1. Select “System and Security” from the Control Panel.
    How to disable Firewall
    System and Security – Image Credits [Tech4Gamers]
  2. Now, select “Windows Defender Firewall.”
  3. If Windows Defender is not installed, click on “Windows Firewall.

Turn Off The Firewall

  1. Click “Turn Windows Defender Firewall on or off” in the Defender Firewall section.
  2. Click “Turn off Windows Defender Firewall (not recommended)” on the next window for private and public network settings.
    How to disable Firewall
    Turn Off Windows Defender Firewall – Image Credits [Tech4Gamers]
  3. Click “OK” to save the changes and turn off the firewall.

Using Command Prompt

Following are the steps for using the command prompt:

Access Command Prompt

  1. In the bottom-left corner of the screen, click the Start button.
  2. Enter “cmd” in the Start menu’s search field.
  3. To run as administrator, right-click “Command Prompt” and choose that option.
Command Prompt
Command Prompt – Image Credits [Tech4Gamers]

Using The Command Line Interface

  • To turn down the Windows Firewall for all profiles—Domain, Private, and Public—use the following command:

netsh advfirewall set allprofiles state off

  • To turn off the Windows Firewall for only the Public profile, use the following command:

netsh advfirewall set publicprofile state off

  • To turn off the Windows Firewall for only the Private profile, use the following command:

netsh advfirewall set privateprofile state off

  • To turn off the Windows Firewall for only the Domain profile, use the following command:

netsh advfirewall set domainprofile state off

  • To carry out the command, press Enter.
Command Prompt
To turn off the Windows Firewall for only the Domain profile – Image Credits [Tech4Gamers]

Turning Off The Firewall

  1. If the command were executed successfully, you would see a message that says “Ok.
  2. The firewall for the chosen profile has been turned off.

Using Group Policy Editor

Here are the steps for disabling the firewall through Group Policy Editor:

Accessing Group Policy Editor

  1. Press the Windows key + R to open the Run dialogue box.
  2. Enter “gpedit.msc” into the dialogue box after typing it in.

Finding The Firewall Settings

  1. In Group Policy Editor, navigate to Computer Configuration > Windows Settings > Security Settings > Windows Firewall with Advanced Security.
  2. You can manage the firewall in the Advanced Security area of Windows Firewall.
    Advanced Security Section
    Advanced Security Section – Image Credits [Tech4Gamers]

Disabling The Firewall

  1. Click “Windows Firewall Properties” in the Windows Firewall with Advanced Security section.
  2. In the Windows Firewall Properties window, select the profile for which you want to turn off the firewall (Domain, Private, Public).
  3. In the profile section, set the “Firewall state” to “Off.
  4. Click OK to save the changes.
  5. The firewall for the specified profile is now disabled.

Using Windows Security App

Following are the steps to follow for the Windows Security app: 

How To Access Windows Security

  1. Click on the Start button.
  2. Enter “Windows Security.” in the search box after opening the Start menu.
  3. Click on “Windows Security” in the results.

Finding The Firewall & Network Protection Section

  1. In Windows Security, click on “Firewall & network protection.”
    Firewall & network protection
    Firewall & network protection – Image Credits [Tech4Gamers]
  2. In the Firewall & network protection section, you will see a list of active firewalls.

Turning Off The Firewall

  1. To turn off the firewall, click on the name of the firewall you want to disable.
  2. In the next window, toggle the switch for the firewall to the “Off” position.
  3. The firewall is now disabled.

Disabling For A Single Program

Step-by-Step Guide to Turning off Windows Firewall for a Single Program:

Open Windows Firewall

  1. Press the Windows key + X to open the Quick Link menu.
  2. Follow: Control Panel>System and Security>Windows Defender Firewall.

Allowing A Program Through Windows Firewall

  1. In the Windows Defender Firewall window, select “Allow a program through Windows Defender Firewall.”
    How to Disable Firewall
    Allow a Program Through Windows Defender Firewall – Image Credits [Tech4Gamers]
  2. In the Allowed apps and features window, click on “Change settings.
  3. Locate the application you want to let through the firewall by scrolling down.
    Select The Program You Want To Allow Through The Firewall
    Select The Program You Want To Allow Through The Firewall – Image Credits [Tech4Gamers]
  4. Check the box next to the program to allow it through the private and public networks firewall.
  5. Click on “OK” to save the changes.

Note: Only allow programs through the firewall that you trust. Allowing untrusted programs through the firewall can increase the risk of security breaches.

Using Registry Editor

Here is a step-by-step guide to disabling the firewall through the Registry Editor:

Accessing The Registry Editor

  1. Press the Windows key + R to open the Run dialogue box.
  2. In the dialogue box, type “regedit.
How to Disable Firewall
“regedit” Command in Run Dialogue Box – Image Credits [Tech4Gamers]

Finding The Firewall Settings

  1. In the Registry Editor, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy.
  2. In the FirewallPolicy folder, you will see two keys: “DomainProfile” and “StandardProfile.”
    Disable Firewall
    Firewall Policy- Image Credits[Tech4Gamers]

Disabling The Firewall

  1. Right-click on the key for the profile you want to disable the firewall for (“DomainProfile” or “StandardProfile“).
  2. Select “Modify.
  3. Make the value data in the Edit DWORD (32-bit) Value box “00000000.”
    Disable Firewall
    Edit DWORD (32-bit) Value – Image Credits [Tech4Gamers]
  4. Click OK to save the changes.

Using Windows PowerShell

Step-by-Step Guide to Disabling Firewall using Windows PowerShell:

Opening Windows PowerShell

  1. Press the Windows key + X to open the Quick Link menu.
  2. Click on “Windows PowerShell (Admin).

Disabling The Firewall

There are different Windows PowerShell commands to disable the firewall for different profiles.

  • To turn off the firewall for the Domain profile, use the command:

Set-NetFirewallProfile -Profile Domain -Enabled False

  • To turn off the firewall for the public profile, use the command:

Set-NetFirewallProfile -Profile Public -Enabled False

Windows PowerShell
Disable The Firewall For The Public Profile – Image Credits [Tech4Gamers]
  • To disable the firewall for the Private profile:

Set-NetFirewallProfile -Profile Private -Enabled False

  • To disable the firewall for all profiles:

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

Verifying Firewall Status

  1. To verify that the firewall has been successfully disabled, type the following command and press Enter:

Get-NetFirewallProfile

This command displays the firewall profile settings, including the firewall’s state (Enabled or Disabled).

Conclusion

This was everything you needed to know about how to disable firewall. Disabling the firewall on Windows can sometimes be necessary to allow specific programs or tasks to run. However, it is essential to be cautious when disabling the firewall, as doing so can increase the risk of security breaches. The methods outlined in this article, including using the Control Panel, Command Prompt, Windows PowerShell, and Group Policy, provide different options for disabling the firewall on Windows.

Before attempting to disable the firewall, it is recommended to have basic knowledge of the Windows operating system and security protocols. This guide is a valuable resource for users as it provides a step-by-step procedure for disabling the firewall on Windows.

Frequently Asked Questions

Is it possible to disable the firewall for a specific network location?

Yes, you can disable the firewall for a particular area of the network by allowing the desired program through the firewall in the Windows Defender Firewall settings and specifying the network location.

Can I disable the firewall for a specific port or range of ports?

Yes, you can disable the firewall for a particular port or range of ports by creating an inbound rule in the Windows Defender Firewall settings to allow the desired program through the firewall on the specified port or range of ports.

Can the firewall be set to turn on and off at scheduled times?

Yes, it is possible to schedule the firewall to turn on and off at specific times using the Task Scheduler and the appropriate command prompt or PowerShell commands.


Also Read: 

Was our article helpful? 👨‍💻

Thank you! Please share your positive feedback. 🔋

How could we improve this post? Please Help us. 😔

Related articles

Saints Row Reboot Was Initially Planned As Sequel With Saints Row 4 Characters

An anonymous developer has revealed that the Saints Row Reboot, launched in 2022, was initially planned as a sequel to Saints Row 4.

RX 7800 XT Vs RX 6950 XT: Ultimate Comparison

In today's face-off, the RX 7800 XT vs RX 6950 XT are the ones who are entering the colosseum to see who outperforms the other.

Intel Confirms Desktop Meteor Lake Lineup For 2024

An Intel Executive has confirmed that Meteor Lake is coming to desktops in 2024 after the launch of the mobile platform later this year.

Third Star Wars Jedi Game in the Works, Confirms Cal Kestis Actor

A Star Wars Jedi: Survivor sequel has been officially confirmed by the voice actor of Cal Kestis, the protagonist of the series.

Bungie More Valuable Than Activision Would Have Been, Claims Sony

Jim Ryan believes Sony has more to gain from the Bungie acquisition than a potential merger with Activision Blizzard.

Similar Guides

Ali Rashid Khan
Ali Rashid Khan
Ali Rashid Khan is an avid gamer, hardware enthusiast, photographer, and devoted litterateur with a period of experience spanning more than 14 years. Sporting a specialization with regards to the latest tech in flagship phones, gaming laptops, and top-of-the-line PCs, Ali is known for consistently presenting the most detailed objective perspective on all types of gaming products, ranging from the Best Motherboards, CPU Coolers, RAM kits, GPUs, and PSUs amongst numerous other peripherals. When he’s not busy writing, you’ll find Ali meddling with mechanical keyboards, indulging in vehicular racing, or professionally competing worldwide with fellow mind-sport athletes in Scrabble at an international level. Currently speaking, Ali has completed his A-Level GCEs with plans to go into Business Studies, or who knows, perhaps a full-time dedicated technological journalist.

LEAVE A REPLY

Please enter your comment!
Please enter your name here