Windows Defender Firewall: 'Cannot Change Settings' Fix
Your settings are grayed out because of group policy or a corrupted firewall profile. Here's how to unlock them fast.
Quick answer for advanced users
Run reg delete "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall" /f in an admin Command Prompt, then restart the firewall service. That clears group policy locks instantly.
Why your firewall settings are stuck
You click the Windows Defender Firewall settings, and everything is grayed out. The buttons don't work. It feels like something broke. But it's probably not broken — it's locked by a policy. Group Policy (from your IT admin, a previous corporate setup, or a third-party antivirus) pulls a lever that says "users can't touch this." Or, your firewall profile got corrupted after a Windows update. The netsh advfirewall set of commands is your best friend here.
Step-by-step fix
- Open Command Prompt as admin. In Windows 10/11, hit Start, type
cmd, right-click Command Prompt, select "Run as administrator." - Run this command to see the current policy:
Look for lines that say "Applied Group Policy Objects: Windows Firewall" or similar. If you see firewall policies, that's your problem.gpresult /r - Check the registry for locks:
If this returns anything, the firewall is locked by policy.reg query "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall" - Delete the policy key:
This wipes the policy that blocks changes.reg delete "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall" /f - Restart the firewall service:
This flushes the old policy.net stop MpsSvc && net start MpsSvc - Check the local group policy editor (if you have Windows Pro or Enterprise): Press
Win + R, typegpedit.msc. Go to Computer Configuration > Administrative Templates > Network > Network Connections > Windows Defender Firewall. Set all policies to "Not Configured." Then rungpupdate /forcein an admin Command Prompt. - If still stuck, reset the firewall completely:
Then restart your PC.netsh advfirewall reset
Alternative fixes if the main one fails
1. Corrupted profile
Your firewall profile file might be broken. Go to C:\Windows\System32\GroupPolicy. Delete everything inside (yes, all folders). Then run gpupdate /force and restart. That rebuilds the policy files.
2. Third-party antivirus interference
Norton, McAfee, or Bitdefender often disable Windows Firewall and lock its settings. Open your antivirus dashboard, look for a setting like "Firewall Control" or "Network Shield," and disable it temporarily. Then try the steps above.
3. User account control (UAC) glitch
Sometimes UAC prevents the firewall control panel from running with full admin rights. Change UAC slider to "Never notify" (temporary), reboot, make your firewall changes, then bump it back to the default setting.
Prevention tip
If you ever rejoin a corporate domain or install antivirus, the firewall locks can return. Make a backup of your firewall rules with netsh advfirewall export "C:\firewall-backup.wfw". Then if things break later, import it back with netsh advfirewall import "C:\firewall-backup.wfw". Takes 10 seconds.
I've seen this error on Windows 10 22H2 and Windows 11 23H2 after a feature update. The registry key deletion fix works every time for non-enrolled personal devices. For work laptops, ask your IT — don't delete policies there.
Was this solution helpful?