How to Enable Firewall when It's Disabled on Windows

How to Enable Firewall when It's Disabled on Windows

David Lv12

How to Enable Firewall when It’s Disabled on Windows

Windows Firewall is crucial to ensure the security of your computer and protect it from potential threats. However, sometimes you may encounter issues while enabling it.

Below, we explore the different solutions you can try to fix this issue for good.

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

1. Run the Firewall Troubleshooter

If you are having trouble enabling Firewall in Windows, it is a good idea to start troubleshooting using the official Firewall troubleshooter released by Microsoft Automated Troubleshooting Services.

This utility will scan your system for underlying problems that might be preventing Firewall from functioning. If an issue is identified, it will suggest relevant fixes that you can either apply manually or from within the troubleshooter.

Here is how you can run the troubleshooter:

  1. Head over to the official Microsoft page for the troubleshooter and download it.
    Download firewall troubleshooter
  2. Click on the downloaded file and proceed with the on-screen instructions to start the scan.
    Firewall troubleshooter
  3. Once the scan completes, check the results and apply the solutions suggested by the troubleshooter.

You can now close the troubleshooter and check if the issue is resolved.

2. Check if Another Security Software Is Active

Are you using a third-party security program on your computer? If so, there is a good chance that it is conflicting with Windows Firewall and stopping it from working. As such, if you have installed another antivirus app recently, we recommend temporarily disabling or uninstalling the third-party security program and then enabling Windows Firewall.

Disabling the third-party antivirus software may vary depending on the program you have installed. However, a common approach is to right-click on the antivirus icon located in the taskbar. From the context menu that appears, you should find an option to disable the antivirus temporarily until you restart your computer.

Temporarily disable antivirus

https://techidaily.com

After disabling the antivirus, try enabling the Windows Firewall and check if it functions properly now.

3. Reset the Windows Firewall settings

The issue might also be with the Firewall settings. You can fix any such issues by resetting Windows Firewall settings, as it will restore the firewall configuration to its default state, undoing any customizations or changes that might be causing conflicts.

Here is how you can proceed:

  1. Press the Win + R keys together to open Run.
  2. Type “control” in Run and click Enter.
  3. In the Control Panel, expand the View by option and choose Category.
  4. Click on System and Security > Windows Defender Firewall.
    Defender Firewall in Control Panel
  5. Head over to the left pane and choose Restore defaults.
    Restore defaults for firewall
https://techidaily.com
  1. Confirm the action in the following prompt and proceed with the on-screen instructions to proceed.
  2. Once done, open Run again.
  3. Type “cmd” in the text field and press Ctrl + Shift + Enter keys together. This will open Command Prompt with administrator privileges.
  4. Click Yes in the User Account Control prompt.
  5. Once you are inside the Command Prompt window, type the command mentioned below and click Enter to execute it. This will force enable the Firewall component.
    netsh firewall set opmode mode=ENABLE exceptions=enable
  6. Wait for the command to execute and then restart your computer. Check if the problem is now fixed.

4. Modify the Registry Editor

There is also a chance that a Registry key DisableAntiSpyware is enabled, which is preventing you from enabling Firewall on your computer.

To check if this is the case in your situation, you can access the Registry Editor and check the status of the DisableAntiSpyware key.

However, before you proceed, we highly recommend creating a Registry backup , just to be safe.

Once that is done, proceed with the steps below:

  1. Press the Win + R keys together to open Run.

  2. Type “regedit” in Run and click Enter.

  3. Click Yes in the User Account Control prompt.

  4. In the Registry Editor, navigate to the location below.
    ​​​​​​​HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

  5. Move to the right side and look for the DisableAntiSpyware key. If you locate it, delete it. You can also double-click on it and change its value to 0 if you do not want to delete it.
    Disable or delete the registry key

  6. Once done, head over to the following location:
    ​​​​​​​​​​​​​​HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/BFE

  7. Right-click on the BFE key and choose Permissions from the context menu.
    Access permissions of the key

  8. Under “Group or user names”, click on Add.

  9. Type “Everyone” in the “Enter the object names to select” and click OK.
    Modify permissions of the key

  10. Now, head over to the “Permissions for Everyone” section and checkmark the box associated with Full Control under Allow.

  11. Click Apply to save the changes and check if the issue is now resolved.

https://techidaily.com

Additional Generic Fixes to Try

Apart from the fixes we have listed above, here are some additional solutions that you can try to fix the Firewall problem.

  • Ensure relevant services are running: Windows Firewall relies on several services to function properly. Ensure that the Windows Defender Firewall, Windows Defender Advanced Threat Protection, Windows Defender Antivirus Network Inspection, and Windows Defender Antivirus services are working fine in the Windows Services utility.
  • Scan with SFC: You can also scan the system for underlying corruption errors that might be leading to the problem using the System File Checker . You can run it via Command Prompt and analyze the results to find the culprit.
  • Clean install Windows: If nothing works and it is essential for you to enable Firewall, you can perform a clean install of Windows. It will wipe the existing installation and download a new one without any underlying problems.
https://techidaily.com

Protect Your System With Windows Firewall

The steps above should help you fix issues with Windows Firewall easily. If the error persists and you do not want to clean install the system yet, you can report the issue to Microsoft and wait for them to suggest a fix.

Below, we explore the different solutions you can try to fix this issue for good.

Also read:

  • Title: How to Enable Firewall when It's Disabled on Windows
  • Author: David
  • Created at : 2024-10-22 10:23:00
  • Updated at : 2024-10-26 22:44:33
  • Link: https://win11.techidaily.com/how-to-enable-firewall-when-its-disabled-on-windows/
  • License: This work is licensed under CC BY-NC-SA 4.0.