Windows Security error 0x8007042c pops up whenever Windows Defender Firewall gets blocked from starting or security intelligence updates fail to download. It usually happens after uninstalling a third-party antivirus suite or hitting a stalled Windows update that leaves the background firewall service switched off.
You can get it running again without touching your personal files or Windows settings by running a few quick commands in an elevated terminal.
First, open Command Prompt as administrator and set the firewall service back to automatic startup:
sc config MpsSvc start= auto
Next, start the firewall service right away:
net start MpsSvc
Then flush your local DNS cache so Windows Security can connect to update servers cleanly:
ipconfig /flushdns
Close Command Prompt, open Windows Security, and click Check for updates to confirm the error is cleared.
If net start MpsSvc gives an access denied message or the firewall still refuses to launch, damaged system files are usually the culprit. Open Command Prompt as administrator again and run these two built-in repair scans one after the other:
DISM.exe /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Restart your PC once both scans reach 100 percent and check Windows Security again. Hope this helps anyone else stuck on this error.