sodcalculator

10 Tech How-To

0x6d9 Windows Firewall Error: Step-by-Step Fix

Guide 10-60878 · Updated · Step by step

This guide walks you through resolving Windows Firewall error 0x6d9, which typically appears when the firewall service fails to start or the firewall settings are corrupted. You’ll learn how to restore the firewall to working order using built-in Windows tools and commands, with no third-party software required.

What You’ll Need

  • Administrator access to the Windows PC (you’ll need to approve UAC prompts)
  • An internet connection (optional, for system file checks)
  • About 15 minutes of time

Step-by-Step

  1. Restart the Windows Firewall service. Press Win + R, type services.msc, and press Enter. In the Services window, scroll down to Windows Defender Firewall (or Windows Firewall on older versions). Right-click it and select Restart. If the service is stopped, right-click and choose Start. Set its Startup type to Automatic by right-clicking, selecting Properties, and choosing Automatic from the dropdown.
  2. Run the Windows Firewall troubleshooter. Open the Get Help app (search for it in the Start menu). Type “Windows Firewall” in the search box, select the Windows Firewall troubleshooter, and click Run. Follow the on-screen instructions. This automated tool can often detect and fix common firewall issues.
  3. Reset the Windows Firewall settings to default. Open an elevated Command Prompt: right-click the Start button and select Terminal (Admin) or Command Prompt (Admin). Type the following command and press Enter: netsh advfirewall reset. This restores all firewall rules to their default state. Note that this will remove any custom rules you’ve added, so you may need to re-add them later.
  4. Check for corrupted system files. In the same elevated Command Prompt, run the System File Checker: sfc /scannow. Wait for the scan to complete (it can take 10-15 minutes). If it finds corrupted files, it will attempt to repair them. After that, run the Deployment Image Servicing and Management tool: DISM /Online /Cleanup-Image /RestoreHealth. This checks the Windows image for deeper issues and can take up to 30 minutes.
  5. Re-register the Windows Firewall DLLs. In the elevated Command Prompt, run the following commands one by one, pressing Enter after each:
    regsvr32 firewallapi.dll
    regsvr32 firewallcmr.dll
    regsvr32 hnetcfg.dll
    regsvr32 netshell.dll

    You’ll see a confirmation popup for each successful registration. If you get an error, it’s usually harmless and you can continue.

  6. Restart your PC. After completing the above steps, restart your computer. This ensures all changes take effect.
  7. Verify the fix. After restarting, open Windows Security (or Windows Defender Security Center) and navigate to Firewall & network protection. Ensure the firewall is turned on for your active network profile (Domain, Private, or Public). You can also test by running netsh advfirewall show allprofiles in an elevated Command Prompt—it should show “State ON” for each profile.

Common Mistakes

  • Skipping the service restart. Many times the firewall service is simply stopped or hung. Always try restarting it first before resetting settings.
  • Not running commands as administrator. The commands in this guide require elevated privileges. If you run them in a normal Command Prompt, you’ll get “Access denied” errors.
  • Forgetting to re-add custom rules. The netsh advfirewall reset command wipes out all custom inbound/outbound rules. If you had specific ports open for a game or application, you’ll need to add them again after the reset.
  • Ignoring third-party antivirus. Some third-party security suites disable the Windows Firewall. If you have one installed, check its settings to ensure it’s not blocking the firewall service.

Tips

  • Create a system restore point before making changes. Go to Control Panel > System > System Protection and click Create. This lets you revert if something goes wrong.
  • If you use a VPN or proxy, temporarily disable it during troubleshooting. These can sometimes interfere with the firewall service.
  • Keep Windows updated. Microsoft regularly fixes firewall-related bugs in cumulative updates.
  • If you’re on a corporate network, check with your IT department—group policies may be enforcing firewall settings that cause this error.

Troubleshooting

If the error persists after following the steps above, try these additional measures:

  • Check the Windows Firewall service dependencies. In the Services window, right-click Windows Defender Firewall and select Properties. Go to the Dependencies tab. Ensure all listed services (like Base Filtering Engine, Remote Procedure Call, etc.) are running and set to Automatic. Start any that are stopped.
  • Perform a clean boot. Type msconfig in the Run dialog, go to the Services tab, check “Hide all Microsoft services”, and click Disable all. Then go to the Startup tab and click Open Task Manager, disable all startup items. Restart. If the firewall works now, a third-party service is the culprit. Re-enable services one by one to identify it.
  • Use System Restore. If you have a restore point from before the error started, use it. Search for “Create a restore point” in the Start menu, click System Restore, and follow the wizard.
  • Run an in-place upgrade repair. As a last resort, you can repair Windows by downloading the Windows 11 Installation Assistant (or Media Creation Tool) and running it while keeping your files and apps. This reinstalls the OS without removing your data.

Frequently Asked Questions

What does error 0x6d9 mean?

It’s a Windows Firewall error that indicates the firewall service cannot start or is not responding. It often appears when you try to open firewall settings or when a program tries to modify firewall rules.

Will resetting the firewall delete my internet connection?

No. The reset restores default rules, which allow all outbound connections and block unsolicited inbound ones. Your internet will still work, but you may need to re-allow certain apps that you previously added exceptions for.

Can I fix this without admin rights?

No. All fixes require administrator privileges because they modify system services and security settings. If you’re on a work computer, contact your IT administrator.

Is it safe to use the netsh commands?

Yes, the commands used here are official Microsoft tools. They only affect firewall settings and system files. They don’t touch your personal data.

Why does the error keep coming back after a few days?

This usually indicates another program is disabling the firewall service, or a system file is corrupted repeatedly. Check for third-party security software, run a full malware scan, and ensure Windows updates are installed.

Does this error affect Windows 10 and Windows 11?

Yes, error 0x6d9 appears on both Windows 10 and Windows 11, as well as older versions like Windows 7 and 8. The steps are essentially the same, with minor differences in menu names.

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 Tech How-To bed →