Forum Discussion
syserrorlog
Nov 28, 2026Iron Contributor
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 intellige...
mshelpforyou53
Nov 28, 2026Brass Contributor
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.