Home › Microsoft Defender for Endpoint › 0x80070422

Microsoft Defender for Endpoint · 0x80070422 · Windows 10 / Windows 11

Defender for Endpoint Error 0x80070422 on Windows 10/11 - Service Disabled

Root cause: Third-party AV or GPO disables Defender service; Fix: Remove DisableAntiSpyware registry key, set WinDefend to Manual start.

Error Details

FactValueSourceNote
Exact error stringThe service cannot be started (0x80070422)Event Viewer > Windows Logs > System - Event ID 7000/7023-> WinDefend
Affected build rangeWindows 10, Windows 11Microsoft Defender for Endpoint documentation
Registry key involvedHKLM\SOFTWARE\Policies\Microsoft\Windows Defender\DisableAntiSpywareRegistry Editor-> 1=disabled by policy
Relevant service/endpoint URLhttps://docs.microsoft.com/en-us/mem/configmgr/protect/deploy-use/manage-antivirusMicrosoft Learn documentation
Log line signatureEvent ID 2000-2004, Event ID 5008Event Viewer > Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational

Log Files to Check

What This Error Actually Means

The error code 0x80070422, which translates to "The service cannot be started" (as seen in Event Viewer > Windows Logs > System with Event ID 7000 or 7023), is raised when the Microsoft Defender Antivirus service, named 'WinDefend', fails to start due to being disabled either by policy or manually. This error can also occur if a critical component of the security system, such as the SecurityHealthService, is not functioning properly. The failure impacts real-time protection and updates for Windows Security features.

Affected Versions and Scope

This issue affects all versions of Microsoft Defender for Endpoint on Windows 10 and Windows 11 operating systems. It does NOT affect earlier versions such as Windows 7 or 8, nor does it impact macOS or Linux environments where Microsoft Defender is not natively installed.

Where To Look First: Logs and Event IDs

To diagnose the issue, start by checking the following logs: In Event Viewer > Windows Logs > System, look for entries with the following characteristics: Additionally, in Event Viewer > Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational, search for:

Root Causes

Third-party Antivirus Installation

When a third-party antivirus product installs, it often disables Microsoft Defender as part of its exclusive AV setup. To confirm this cause, check the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\DisableAntiSpyware. If set to 1 (enabled by policy), this indicates that another AV solution has disabled Windows Defender.

Group Policy Object Configuration

A GPO can also disable Microsoft Defender. Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Turn off Microsoft Defender Antivirus. If set to 'Enabled', this policy will prevent the service from starting.

Tamper Protection Disabled

Tamper protection, a security feature that prevents unauthorized changes to the antivirus settings, can be disabled by scripts or software. To check if tamper protection is managed centrally via Intune, visit Intune admin center > Devices > Configuration profiles > Endpoint Security policy.

Fix Procedure

  1. To remove the DisableAntiSpyware registry key, run an elevated PowerShell session and execute:

    Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -Name DisableAntiSpyware -ErrorAction SilentlyContinue

    Note: Be cautious with this step as it can affect system stability if other policies rely on the DisableAntiSpyware setting.

    Removing or modifying registry keys without proper knowledge can cause system instability. Always back up before making changes.
  2. Check and set the WinDefend service to Manual start:

    $service = Get-Service -Name WinDefend
    if ($service.StartType -eq 'Disabled') {
        Set-Service -Name WinDefend -StartupType Manual
    }
    Start-Service WinDefend
  3. Review and adjust Group Policy settings to allow Microsoft Defender:

    gpresult /H gpo.html
    # Open gpo.html in a browser, search for 'Turn off Microsoft Defender Antivirus'
    # If set by GPO, update the policy setting to 'Not Configured' via Group Policy Management Console.
  4. Enable Tamper Protection through Windows Security:

    • Open Windows Security.
    • Navigate to Virus & threat protection > Virus & threat protection settings.
    • Ensure 'Real-time protection' is On and 'Tamper Protection' is also enabled.
  5. If Tamper Protection is managed centrally, check the Intune Endpoint Security policy:

    • Navigate to Intune admin center > Devices > Configuration profiles > Endpoint Security policy.
    • Ensure that 'Tamper protection' settings are configured correctly.
  6. Run a repair operation for Microsoft Defender:

    Start-Process -FilePath "C:\Windows\System32\mpcmdrun.exe" -ArgumentList '-RemoveDefinitions -All' -Wait
    Update-MpSignature

Error Code Variants

CodeDescriptionDistinguishing Features
0x80070421The service has not been started (ERROR_SERVICE_DOES_NOT_EXIST)This error occurs when the service is missing or corrupted, unlike 0x80070422 where the service exists but cannot start.
0x80070534The specified service has been marked for deletion (ERROR_SERVICE_MARKED_FOR_DELETE)This error indicates that the service is scheduled to be deleted, not just disabled or stopped.
0x800706baThe service cannot accept control messages at this time (ERROR_SERVICE_CANNOT_ACCEPT_CTRL)This code suggests a problem with the service's ability to handle control messages rather than starting issues.

Verification

To verify that the fix has been applied successfully, check:

Prevention

To prevent recurrence of this issue:
A quick diagnostic shortcut is to use the command Get-Service -Name WinDefend | Select Name, Status, StartType. This provides immediate insight into whether the service is disabled and needs enabling.

Sources & References

Related Guides

Get new error code fixes by email

Product-specific solutions for Intune, Autopilot, SCCM and Entra ID — straight to your inbox. No spam.