How do I turn off firewall on Windows 10?

I have been trying to disable the firewall on my Windows 10 PC, but I keep running into issues. Whenever I attempt to change the settings, either the options are grayed out, or I get error messages that prevent me from proceeding. I understand that the firewall is an important security feature, but I need to turn it off temporarily for testing purposes. I’m not very familiar with the different sections of the Windows Security settings, and the various online guides I’ve found seem to suggest slightly different methods. Can someone explain why it’s so challenging for me to find a straightforward way to turn off the firewall on Windows 10? What could be the reasons behind the blocked options, and how can I navigate the settings more effectively?
5 Answers

Disabling the firewall on Windows 10 can indeed be a task that requires careful steps because Microsoft has designed it to prevent unintentional mistakes. Here’s how you can manually turn it off:
- Press the Windows key + I to open the Settings app.
- Click on ‘Update & Security.’
- In the new window, select ‘Windows Security’ from the sidebar.
- Then, click on ‘Firewall & network protection.’
- Under the ‘Firewall & network protection’ section, click on the network profile that has the active label.
- Toggle the switch under ‘Microsoft Defender Firewall’ to turn it off.
Remember to follow exact steps because a small deviance may result in failure to disable the firewall. Restart your computer to ensure the settings have taken effect.

In case none of the methods mentioned help, it might be helpful to check for Group Policy restrictions that are preventing you from turning off the firewall:
- Press the Windows key + R to open the Run dialog box.
- Type
gpedit.msc
and press Enter. - Navigate to
Computer Configuration -> Administrative Templates -> Network -> Network Connections -> Windows Defender Firewall -> Standard Profile
. - Check the ‘Windows Defender Firewall: Protect all network connections’ setting. If it is enabled, change it to disabled.
Alternatively, reach out to your IT department if you’re on a company network, as they might have policies restricting these actions.

To turn off the firewall on Windows 10, follow these steps:
- Open the Control Panel by typing ‘Control Panel’ in the search bar and selecting it from the results.
- In the Control Panel window, click on ‘System and Security.’
- Next, click on ‘Windows Defender Firewall.’
- On the left-hand side, select ‘Turn Windows Defender Firewall on or off.’
- For both private and public network settings, select the option ‘Turn off Windows Defender Firewall (not recommended).’
- Click ‘OK’ to save the changes.
This should disable the firewall temporarily. Make sure to turn it back on once your testing is complete.

On certain occasions, administrative permissions or third-party software can complicate the process of turning off the firewall. Here’s another method, using the command prompt:
- Press the Windows key, type ‘cmd,’ and select ‘Run as administrator’ for the Command Prompt.
- To disable the firewall for all network profiles, type the following command:
netsh advfirewall set allprofiles state off
- Press Enter.
This command universally disables the firewall, ideal for situations where the graphical interface poses limitations. Ensure administrative rights are secured before proceeding.

Sure, I faced similar issues a while ago. Here’s how I managed to turn off the firewall directly through PowerShell, which can be more straightforward:
- Click on the Start menu and type ‘PowerShell.’
- Right-click on ‘Windows PowerShell’ and select ‘Run as administrator.’
- In the PowerShell window, enter the following command:
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
- Press Enter.
Running these commands should disable the firewall across all network profiles. Be cautious and ensure you’re doing this for valid reasons, as it turns off your system’s protection entirely.