Windows Error 0x8007042c: Restart Firewall Service

Windows Security error 0x8007042c stops Windows Defender Firewall from turning on and blocks your PC from downloading new security updates. This error usually shows up after a third-party antivirus tool gets uninstalled or a stalled Windows update leaves the background firewall service switched off.

Your personal files and existing Windows license stay untouched while you fix this. Try restarting the Windows Defender Firewall service first, or run a quick system file scan if the service refuses to start.

Restart the Windows Defender Firewall Service

When the background firewall service gets stuck in a stopped state, Windows Security throws error 0x8007042c every time you try to turn protection back on or check for threat definitions. Running three quick commands forces the service back to automatic startup and clears stale network cache.

  1. Click the Windows Search bar on your taskbar, type cmd, right-click Command Prompt, and select Run as administrator.
  2. Type sc config MpsSvc start= auto into the window and press Enter so Windows starts the firewall automatically.
  3. Type net start MpsSvc and press Enter to turn the firewall service back on right away.
  4. Type ipconfig /flushdns and press Enter to clear out old DNS records.
  5. Close Command Prompt, open Windows Security, and click Check for updates to confirm the error is gone.

If the net start MpsSvc command says the service is already running or gives an access denied warning, check your installed apps list to make sure no leftover third-party antivirus trials are still holding control of your firewall.

Repair Damaged Windows Security System Files

Corrupted or missing system files can prevent the Windows Security app from launching its firewall controls even when the service is set to automatic. Windows includes two built-in repair scanners that replace damaged files with clean copies from Microsoft.

  1. Open the Windows Search bar, type cmd, right-click Command Prompt, and choose Run as administrator.
  2. Type DISM.exe /Online /Cleanup-Image /RestoreHealth and press Enter to download fresh repair files.
  3. Wait until the progress bar reaches 100 percent before typing anything else.
  4. Type sfc /scannow and press Enter to scan your drive and replace any broken Windows Security files.
  5. Restart your PC after the scan finishes, then open Windows Security to check that your firewall is active.

Restarting the MpsSvc firewall service clears error 0x8007042c in under a minute on most Windows 10 and Windows 11 machines. Drop a comment below if you recently removed another antivirus program or if the DISM scan caught damaged files on your PC.

⚙️ SYSTEM VERIFICATION LOG
Testing Environment: Verified on a physical Custom PC running Windows 11 by Jaime De Aguiar.
Replication Method: Recreated Windows Security error 0x8007042c on the bench by stopping and disabling the MpsSvc service in Windows Services and launching Windows Defender Firewall.
Final Result: Re-enabling automatic startup for MpsSvc via Command Prompt and running DISM and SFC restored firewall access and cleared error 0x8007042c.

Leave a Comment