You open Windows Security, try to turn the firewall on, and it stops with `0x80070422: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.` The firewall itself is fine — its service has simply been switched off, usually by an optimizer, a tweak tool, or a third-party antivirus that took its place and then left.
Quick steps
- Open services.msc and find Windows Defender Firewall
- Set its Startup type to Automatic and start it
- Start Base Filtering Engine (BFE) as well
- Run sc config mpssvc start= auto if the service refuses
- Reset the firewall policy with netsh advfirewall reset
- Remove third-party antivirus that replaced the firewall
Things you'll need
- An administrator account on the PC
- The services console: services.msc
- Five minutes for the service restart
- A list of any third-party security tools you installed
Step-by-step
Method 1 of 3: Start the Firewall Service
Download image
Step 1: Open the Services Console
Press Start, type `services.msc`, and open the console. This lists every service on the PC with its status and startup type. The firewall failure is a service problem, and this is the only screen that shows it plainly. Scroll to `Windows Defender Firewall` — its service name is `mpssvc`.
Download image
Step 2: Set the Startup Type Back to Automatic
Double-click Windows Defender Firewall. If the Startup type shows Disabled, that is the whole error. Change it to `Automatic`, click Apply, then click Start. The service spins up and the firewall turns on immediately. 0x80070422 is exactly this: a disabled service being asked to run.
Download image
Step 3: Start Base Filtering Engine Too
The firewall depends on the Base Filtering Engine, and if BFE is disabled the firewall cannot start even when its own service is fine. Find `Base Filtering Engine` in the same list, set it to Automatic, and start it. Then start Windows Defender Firewall again — the dependency is now running underneath it.
Download image
Step 4: Set the Startup Type From the Command Line
If the services console refuses to save the setting, apply it from an elevated terminal: `sc config mpssvc start= auto`, then `net start mpssvc`. The space after `start=` matters — it is `start= auto`, not `start=auto`. A successful start confirms the service is registered and running.
Download image
Step 5: Turn the Firewall On and Confirm
Open Windows Security > Firewall & network protection. Each network profile should now let you toggle the firewall on without the error. Turn it on for your active profile. If the toggle works here, the service is healthy and you are done.
Method 2 of 3: Reset the Firewall Policy
Download image
Step 6: Reset All Firewall Settings to Default
A damaged policy can stop the service even when its startup type is right. In an elevated terminal run `netsh advfirewall reset`. This returns every rule, profile, and setting to factory default. Restart the firewall afterwards — a clean policy removes the corruptions that keep the service from holding steady.
Download image
Step 7: Check the Service Registration in the Registry
Open Registry Editor and check `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mpssvc`: the `Start` value should be `2` for Automatic. If it is `4` (disabled), set it to 2 and reboot. A registry Start value of 4 is what a tweak tool leaves behind — this restores what the service console could not.
Download image
Step 8: Confirm the Service Is Not Blocked by Group Policy
On managed PCs, a policy can disable the firewall service deliberately. Run `gpedit.msc` and check `Computer Configuration > Administrative Templates > Network > Network Connections > Windows Defender Firewall` for a disabled state. Set any blocking policy back to Not Configured, run `gpupdate /force`, and start the service.
Download image
Step 9: Remove the Third-Party Antivirus That Took Its Place
Some antivirus suites disable Defender Firewall on install, then leave it disabled when uninstalled. Remove any third-party security suite you no longer use from `Settings > Apps`, reboot, and start the firewall service again. With the replacement gone, Defender Firewall reclaims its job and starts cleanly.
Download image
Step 10: Check for a Cleanup Tool That Disabled It
System optimizer and debloat tools disable services in bulk, and the firewall is a common victim. Open any such tool you have used and restore its service changes, or set the service back to Automatic manually as in Method 1. Then remove the tool so it does not re-disable the service on its next run.
Method 3 of 3: System Repairs When the Service Still Fails
Download image
Step 11: Run SFC to Restore Service Files
If the service files themselves are damaged, the service fails to start regardless of settings. Run `sfc /scannow` in an elevated terminal. It restores modified system files, including the service binaries. Reboot, set the service to Automatic again, and start it.
Download image
Step 12: Follow With DISM if SFC Cannot Repair
When SFC reports damage it cannot fix, rebuild the component store first: `DISM /Online /Cleanup-Image /RestoreHealth`, then `sfc /scannow` again. After a reboot, start the firewall service. The pair resolves the system-level damage that survives every settings fix.
Download image
Step 13: Check the Service's Dependencies Are All Running
Beyond BFE, the firewall touches other services that a cleanup tool may have disabled. Open services.msc and confirm Windows Management Instrumentation (`Winmgmt`) and the RPC services are running — the firewall console cannot report status without them. Set any stopped dependency to Automatic and start it, then start mpssvc.
Download image
Step 14: Try a Clean Boot and Start the Service
A third-party service can hold the firewall's resources. Run `msconfig`, hide Microsoft services, disable the rest, and reboot into the clean state. Start mpssvc there. If it runs in the clean state but not normally, re-enable services in halves to find the blocker — usually a leftover security driver.
Download image
Step 15: Repair-Install Windows as the Last Resort
If the service still refuses after every reset, the service catalog itself is damaged beyond targeted repair. Download the Windows installation media, run `setup.exe`, and choose `Keep files and apps`. The repair reinstalls every service registration without touching your data, and the firewall starts on the rebuilt catalog.
Tips
- 0x80070422 is always a disabled service. Fix the startup type first before touching policy or system files.
- Start BFE before mpssvc — the firewall depends on it, and starting it second fails silently.
- The command is sc config mpssvc start= auto with a space after the equals sign. Get the space wrong and the command fails.
- After a third-party antivirus leaves, always check the firewall service — its absence is the most common cause.
Warnings
- Do not disable the firewall service to fix something else — 0x80070422 is what you meet when you try to turn it back on.
- netsh advfirewall reset wipes all custom rules. Export them first with netsh advfirewall export if you have any you need to keep.
- Avoid debloat and optimizer tools that disable services in bulk. Reverting their changes is harder than the tweak was worth.
- Do not run a repair-install before trying the service and policy resets — those fix this error in minutes.
Frequently asked questions
Why was my firewall service disabled in the first place?
Almost always one of three: a third-party antivirus disabled it on install, a cleanup or debloat tool disabled it in a batch tweak, or someone set it to Disabled in services.msc. The error appears when Windows then tries to start a service marked disabled.
What is the difference between mpssvc and BFE?
mpssvc is the Windows Defender Firewall service itself. BFE — Base Filtering Engine — is the lower-level service it depends on to evaluate network traffic. Both must be running; a disabled BFE stops the firewall even when mpssvc is set correctly.
Is it safe to reset the firewall with netsh advfirewall reset?
Yes, but it erases every custom rule you have added — allowed apps, blocked ports, all of it. Export first with netsh advfirewall export if you have rules to keep. The reset returns the firewall to factory defaults and clears damaged policy entries.
The service is running but the firewall still will not turn on. Now what?
The policy layer is damaged, not the service. Run netsh advfirewall reset, reboot, and toggle the firewall on in Windows Security. If it still refuses, SFC and DISM repair the underlying files.
References
- Microsoft Learn — System Error Codes 0–499 (0x80070422, ERROR_SERVICE_DISABLED). https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-
- Microsoft Learn — netsh advfirewall reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/netsh-advfirewall
- Microsoft Learn — sc config command reference. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/sc-config
- Microsoft Support — Use System File Checker in Windows. https://support.microsoft.com/en-us/windows/using-system-file-checker-in-windows-365e0031-36b1-6031-f804-8fd86e0ef4ca
- Microsoft Learn — Repair a Windows image with DISM. https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/repair-a-windows-image
- Microsoft Support — How to perform a clean boot in Windows. https://support.microsoft.com/en-us/topic/how-to-perform-a-clean-boot-in-windows-da2f9573-6eec-00ad-2f8a-97a2b7b6fb24
Every guide is reviewed against its sources. See our editorial policy.
Reader comments
0 so farFinished this guide? Tell other readers what worked, what didn't, and what you would change.