Open Windows Security > Firewall & network protection > Allow an app through firewall, click Change settings, locate your app, and check Private (avoid checking Public unless required on untrusted networks). For a specific port (e.g., TCP 3000 or UDP 25565), open Windows Defender Firewall with Advanced Security (wf.msc) > Inbound Rules > New Rule > Port.
Before You Start: Quick Pre-Check
- Verify whether a third-party antivirus (Norton, McAfee, Avast, Bitdefender, etc.) is installed, because Windows automatically puts Microsoft Defender into passive/off mode when another AV registers.
- Open PowerShell or Command Prompt using "Run as Administrator" before executing Defender service or MpCmdRun commands.
- Check Windows Settings > Accounts > Access work or school to verify whether a school/company Intune or Group Policy profile is managing security settings.
Why This Issue Happens
Open Windows Security > Firewall & network protection > Allow an app through firewall, click Change settings, locate your app, and check Private (avoid checking Public unless required on untrusted networks).
This issue falls under Windows Defender Firewall, Offline Scan, High CPU (MsMpEng.exe) & Cross-Device Microsoft Defender (Windows Defender & Security). Confirming the exact trigger before making changes prevents unnecessary resets and helps preserve your data and account standing.
Step-by-Step Resolution Protocol
For a specific port (e.g., TCP 3000 or UDP 25565), open Windows Defender Firewall with Advanced Security (wf.msc) >.
Inbound Rules >.
New Rule >.
How to Verify the Fix Worked
- Open PowerShell as Administrator and run Get-MpComputerStatus to verify AMServiceEnabled, AntivirusEnabled, RealTimeProtectionEnabled, and BehaviorMonitorEnabled all return True.
- Open Windows Security (windowsdefender:) and confirm Virus & Threat Protection, Firewall & Network Protection, and Device Security all show green checkmarks with current definition dates.
- Run a Quick Scan or verify Protection History to confirm the prior error code or repeated alert has cleared.
What if the issue still persists? If WinDefend or SecurityHealthService still fails to start with error 577, 0x80070422, or blank UI screens after removing legacy AV drivers and running DISM/SFC, perform an in-place Windows 11/10 Repair Upgrade (keeping all files and apps) to restore signed Defender binaries.