Forum Discussion

syserrorlog's avatar
syserrorlog
Iron Contributor
Nov 28, 2026

Windows Security error 0x8007042c blocking Windows Defender Firewall

Ran into Windows Security error 0x8007042c on a Windows 11 test machine recently after removing a third-party antivirus suite. Windows Defender Firewall refused to turn back on and security intelligence updates failed every time.

In most cases this happens because the background Windows Defender Firewall service gets left in a disabled or stopped state. You can get it running again without touching any personal files by opening Command Prompt as administrator and setting the service back to automatic startup:

sc config MpsSvc start= auto

Once that goes through, start the firewall service right away:

net start MpsSvc

It also helps to clear out any stale network records so Windows Security can reach the update servers cleanly:

ipconfig /flushdns

After running those, close Command Prompt, open Windows Security, and click Check for updates to confirm the service stays active. If net start MpsSvc returns an access denied message or the firewall still refuses to launch, damaged system files are usually behind it. I wrote up the full walkthrough on how to fix Windows error 0x8007042c including the DISM and SFC repair steps for anyone else dealing with this error.

1 Reply

  • Try these steps in order to fix Windows Defender Firewall error 0x8007042c on Windows 11.

     

    1. Enable the Firewall service

     

    1. Open Command Prompt as Administrator.

    2. Run these commands one by one:

     

    cmd

     

    cmd

    sc config MpsSvc start= auto

    net start MpsSvc

    ipconfig /flushdns

     

     

    2. Repair Windows system files

     

    If the firewall still doesn't start, run:

     

    cmd

     

    cmd

    DISM /Online /Cleanup-Image /RestoreHealth

     

     

    After it finishes, run:

     

    cmd

     

    cmd

    sfc /scannow

     

     

    Restart your PC.

     

    3. Reset Windows Firewall

     

    Open Command Prompt as Administrator:

     

    cmd

     

    cmd

    netsh advfirewall reset

     

     

    4. Check the Firewall

     

    - Open Windows Security.

    - Select Firewall & network protection.

    - Turn Microsoft Defender Firewall ON.

     

    Important: If `net start MpsSvc` returns Access Denied or error 1058, don't change registry permissions randomly. Check whether a leftover third-party antivirus service is interfering.

     

    Recommended: Complete steps 1–3, restart, and check the firewall again.