HackTool:Win32/AutoKMS indicates an unauthorized pirated Windows/Office activator (which frequently bundles hidden infostealers or scheduled tasks that re-infect Defender). Delete the rogue KMS scheduled task inside Task Scheduler, remove unauthorized Defender exclusions, run Microsoft Defender Offline Scan, and activate Windows/Office with a legitimate retail/OEM product key.
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
HackTool:Win32/AutoKMS indicates an unauthorized pirated Windows/Office activator (which frequently bundles hidden infostealers or scheduled tasks that re-infect Defender).
This issue falls under Controlled Folder Access (Ransomware Protection), SmartScreen, PUA & Exclusions (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
Delete the rogue KMS scheduled task inside Task Scheduler, remove unauthorized Defender exclusions, run Microsoft Defender Offline Scan, and activate Windows/Office with a legitimate retail/OEM product key.
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.