sodcalculator

08 Everyday Math

Firewall Settings Greyed Out in Windows 11? Fix It

Guide 08-64690 · Updated · Step by step

If the firewall settings in Windows 11 are greyed out, it usually means a group policy, a third-party security app, or a corrupted system file is blocking changes. You can fix it by editing the registry, checking Group Policy, or resetting the Windows Defender Firewall service.

Why Firewall Settings Become Greyed Out

The Windows Defender Firewall is controlled by several layers of the operating system. When any of those layers locks the settings, the toggle switches and buttons in the Windows Security app become inactive. The most common causes are:

  • Group Policy settings – On Windows 11 Pro, Enterprise, or Education, administrators can enforce firewall rules that hide or disable the settings UI.
  • Third-party antivirus or security suites – Many security programs disable the Windows Firewall and replace it with their own, which greys out the native controls.
  • Corrupted registry values – A leftover or incorrectly modified registry entry can disable the firewall settings.
  • System file corruption – Damaged system files can prevent the Windows Security app from functioning normally.
  • User account control (UAC) or permission issues – If you are not logged in as an administrator, or if UAC is misconfigured, settings may be locked.

How Windows Firewall Settings Work

Windows Defender Firewall is a host-based firewall that filters network traffic based on rules. The settings you see in the Windows Security app (under Firewall & network protection) are a front end for a set of services and registry keys. The main service is Windows Defender Firewall (service name: mpssvc). If this service is stopped or disabled, the settings will be greyed out. The firewall also relies on the Base Filtering Engine (BFE) and the Security Accounts Manager (SAM) services.

When you toggle a firewall profile (Domain, Private, Public) on or off, Windows writes changes to the registry under HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy. If a Group Policy object overrides these values, the UI shows them as greyed out because the policy takes precedence.

How to Fix Greyed Out Firewall Settings

Try these fixes in order, starting with the simplest. You must be logged in with an administrator account for all of them.

  1. Check if a third-party security app is installed. Open the Start menu and look for any antivirus or security suite (e.g., McAfee, Norton, Bitdefender). If present, open it and look for a firewall section – it may have its own toggle that disables Windows Firewall. You can also temporarily disable the third-party firewall (or uninstall it) to see if the Windows settings become active again.
  2. Run the Windows Security app as administrator. Sometimes the app needs elevated privileges. Right-click the Start button, select Windows Security (or search for it), and if it opens normally, that’s not the issue – but you can try restarting the app.
  3. Restart the Windows Defender Firewall service. Press Win + R, type services.msc, and press Enter. Find Windows Defender Firewall, right-click it, and select Restart. Also check that Base Filtering Engine is running. If the service is disabled, set its Startup type to Automatic and start it.
  4. Edit the registry to re-enable the firewall. Press Win + R, type regedit, and go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall. If this key exists, look for a value named EnableFirewall under the StandardProfile or DomainProfile subkeys. If it is set to 0, change it to 1. If the key does not exist, the policy is not set – you can ignore this step. Be cautious when editing the registry; export a backup first.
  5. Use Group Policy Editor (Windows Pro/Enterprise only). Press Win + R, type gpedit.msc, and go to Computer Configuration > Administrative Templates > Network > Network Connections > Windows Defender Firewall. Check each profile’s settings. If any policy is set to Disabled or Not Configured but the UI is still greyed out, you can set it to Not Configured and then restart. If the policy is set to Enabled with “Protect all network connections” unchecked, that could also block the UI.
  6. Run System File Checker and DISM. Open Command Prompt as administrator and run sfc /scannow. After it finishes, run DISM /Online /Cleanup-Image /RestoreHealth. Restart your PC.
  7. Check your user account type. If you are not an administrator, you cannot change firewall settings. Go to Settings > Accounts > Your info to see if your account says “Administrator”. If not, you will need an admin to change it.

What to Do If the Fixes Don’t Work

If none of the above steps restore the settings, you can still manage the firewall from an elevated Command Prompt or PowerShell. For example, to turn the firewall on for all profiles, run:

netsh advfirewall set allprofiles state on

To turn it off, replace on with off. This command works even when the GUI is greyed out, because it writes directly to the firewall service. You can also create inbound/outbound rules using netsh advfirewall firewall add rule ... if you need to allow or block specific programs.

If the firewall service itself is corrupted, you may need to perform a system restore to a point before the issue started, or use the “Reset this PC” feature (keep your files) as a last resort.

Common Misconceptions About Greyed Out Firewall

One common myth is that greyed out settings mean your firewall is broken or not protecting you. In many cases, the firewall is still running – the UI is just locked. Another misconception is that you must disable the firewall to fix the greyed out state; that is rarely true and can expose your PC to network threats. Also, some users think that editing the registry is dangerous and should be avoided. While you should be careful, changing a single DWORD value back to 1 is a standard troubleshooting step.

Another point: if you are on Windows 11 Home, Group Policy Editor is not available by default, but the registry method works the same. The “EnableFirewall” value is the same across editions.

Frequently Asked Questions

Why is the firewall toggle greyed out even though I am an administrator?

Even as an administrator, group policies or third-party security software can override your local settings. Check Group Policy and look for any installed security suites first.

Can I still use the firewall if the settings are greyed out?

Yes. The firewall may still be active. You can verify by running netsh advfirewall show allprofiles in Command Prompt. If it shows State ON, your firewall is working.

Will resetting Windows 11 fix the greyed out firewall settings?

Resetting Windows can fix system file corruption that causes the issue, but it is a drastic step. Try the registry and service fixes first. If you reset, choose “Keep my files” to avoid losing personal data, but you will need to reinstall apps.

Is it safe to manually edit the registry to enable the firewall?

It is safe if you follow the exact key path and change only the EnableFirewall value. Always back up the registry before making changes. If you are unsure, use System Restore first.

What if the Windows Defender Firewall service is missing from services.msc?

That indicates a deeper system issue. Run sfc /scannow and DISM to repair system files. If the service is still missing, you may need to repair install Windows using the Media Creation Tool.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Everyday Math bed →