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
- In the lower-left corner of the screen, click the Start button.
- Go to Start Menu, then navigate to Settings.
- You will see the Control Panel option there; click on that.
Find The Windows Defender Firewall
- Select “System and Security” from the Control Panel.
System and Security – Image Credits [Tech4Gamers] - Now, select “Windows Defender Firewall.”
- If Windows Defender is not installed, click on “Windows Firewall.“
Turn Off The Firewall
- Click “Turn Windows Defender Firewall on or off” in the Defender Firewall section.
- Click “Turn off Windows Defender Firewall (not recommended)” on the next window for private and public network settings.
Turn Off Windows Defender Firewall – Image Credits [Tech4Gamers] - 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
- In the bottom-left corner of the screen, click the Start button.
- Enter “cmd” in the Start menu’s search field.
- To run as administrator, right-click “Command Prompt” and choose that option.

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.

Turning Off The Firewall
- If the command were executed successfully, you would see a message that says “Ok.“
- 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
- Press the Windows key + R to open the Run dialogue box.
- Enter “gpedit.msc” into the dialogue box after typing it in.
Finding The Firewall Settings
- In Group Policy Editor, navigate to Computer Configuration > Windows Settings > Security Settings > Windows Firewall with Advanced Security.
- You can manage the firewall in the Advanced Security area of Windows Firewall.
Advanced Security Section – Image Credits [Tech4Gamers]
Disabling The Firewall
- Click “Windows Firewall Properties” in the Windows Firewall with Advanced Security section.
- In the Windows Firewall Properties window, select the profile for which you want to turn off the firewall (Domain, Private, Public).
- In the profile section, set the “Firewall state” to “Off.“
- Click OK to save the changes.
- 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
- Click on the Start button.
- Enter “Windows Security.” in the search box after opening the Start menu.
- Click on “Windows Security” in the results.
Finding The Firewall & Network Protection Section
- In Windows Security, click on “Firewall & network protection.”
Firewall & network protection – Image Credits [Tech4Gamers] - In the Firewall & network protection section, you will see a list of active firewalls.
Turning Off The Firewall
- To turn off the firewall, click on the name of the firewall you want to disable.
- In the next window, toggle the switch for the firewall to the “Off” position.
- 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
- Press the Windows key + X to open the Quick Link menu.
- Follow: Control Panel>System and Security>Windows Defender Firewall.
Allowing A Program Through Windows Firewall
- In the Windows Defender Firewall window, select “Allow a program through Windows Defender Firewall.”
Allow a Program Through Windows Defender Firewall – Image Credits [Tech4Gamers] - In the Allowed apps and features window, click on “Change settings.“
- Locate the application you want to let through the firewall by scrolling down.
Select The Program You Want To Allow Through The Firewall – Image Credits [Tech4Gamers] - Check the box next to the program to allow it through the private and public networks firewall.
- 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
- Press the Windows key + R to open the Run dialogue box.
- In the dialogue box, type “regedit.“

Finding The Firewall Settings
- In the Registry Editor, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy.
- In the FirewallPolicy folder, you will see two keys: “DomainProfile” and “StandardProfile.”
Firewall Policy- Image Credits[Tech4Gamers]
Disabling The Firewall
- Right-click on the key for the profile you want to disable the firewall for (“DomainProfile” or “StandardProfile“).
- Select “Modify.“
- Make the value data in the Edit DWORD (32-bit) Value box “00000000.”
Edit DWORD (32-bit) Value – Image Credits [Tech4Gamers] - Click OK to save the changes.
Using Windows PowerShell
Step-by-Step Guide to Disabling Firewall using Windows PowerShell:
Opening Windows PowerShell
- Press the Windows key + X to open the Quick Link menu.
- 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

- 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
- 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
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.
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.
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:
Thank you! Please share your positive feedback. 🔋
How could we improve this post? Please Help us. 😔