About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
Two Defender events are easy to mistake for routine noise and are not. Event 1116 says Microsoft Defender Antivirus detected malware or other potentially unwanted software. Events 1118 and 1119 say that after the detection Defender tried to act on the threat (clean it, quarantine it, remove it) and the action failed. The detection is therefore still unresolved, and the device may not be protected.
The sections below explain how to read the two events, what Microsoft's page says to do for each action type, a short list of the error codes that explain a failed action, and the two changing steps Microsoft supports: updating definitions and scanning again. Nothing before the Fix section changes anything.
What the error means
Both events are in Event Viewer under Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational. Microsoft's page says to press the Windows logo key + R, type eventvwr.msc, select OK, and use Find and Filter in the Actions pane.
| Event | Symbolic name on the page | Message on the page |
|---|---|---|
| 1118 | MALWAREPROTECTION_STATE_MALWARE_ACTION_FAILED | "The antimalware platform attempted to perform an action to protect your system from malware or other potentially unwanted software, but the action failed." |
| 1119 | MALWAREPROTECTION_STATE_MALWARE_ACTION_CRITICALLY_FAILED | "The antimalware platform encountered a critical error when trying to take action on malware or other potentially unwanted software. There are more details in the event message." |
The description of 1118 says Defender "encountered a noncritical error when taking action on malware", and its user action reads "No action is necessary. Microsoft Defender Antivirus failed to complete a task related to the malware remediation. This isn't a critical failure." The user action for 1119 begins "The Microsoft Defender Antivirus client encountered this error due to critical issues. The endpoint might not be protected."
Both events carry the same detail fields: threat Name and ID, Severity, Category, Path, Detection Origin, Detection Type, Detection Source, User, Process Name, Action, Action Status, Error Code, Error Description, Signature Version and Engine Version. The Action field is what Defender attempted. Microsoft lists its values as Clean, Quarantine, Remove, Allow, User defined, No action and Block. Error Code is described as "Standard HRESULT values".
Likely causes
Microsoft's event page does not list causes for 1118 or 1119. The Error Code in the event is the field to read first, and Microsoft's client error code table explains several of them. These are the codes that match a failed action:
| Error code on Microsoft's page | Message | Possible reason on the page |
|---|---|---|
| 0x805080211 | ERR_MP_QUARANTINE_FAILED | Defender failed to quarantine a threat |
| 0x80508022 | ERR_MP_REBOOT_REQUIRED | A reboot is required to complete threat removal |
| 0x80508023 | ERR_MP_THREAT_NOT_FOUND | The threat might no longer be present on the media, or malware might be stopping you from scanning |
| 0x80508024 | ERR_MP_FULL_SCAN_REQUIRED | A full system scan might be required |
| 0x80508025 | ERR_MP_MANUAL_STEPS_REQUIRED | Manual steps are required to complete threat removal |
| 0x80508026 | ERR_MP_REMOVE_NOT_SUPPORTED | Removal inside the container type might not be supported, for example inside an archive |
| 0x80508027 | ERR_MP_REMOVE_LOW_MEDIUM_DISABLED | Removal of low and medium threats might be disabled |
| 0x80508029 | ERROR_MP_RESCAN_REQUIRED | A rescan of the threat is required |
| 0x80508030 | ERROR_MP_CALLISTO_REQUIRED | An offline scan is required |
Two oddities on Microsoft's pages are worth knowing. The page prints the quarantine failure code as 0x805080211, which has nine hex digits where the others have eight, so check the code in your own event against the table before relying on a match; Microsoft's Get-MpThreatDetection page prints the same failure, ERROR_MP_QUARANTINE_FAILED, as 0x80508021 with eight digits. And the page's internal error code table lists ERR_MP_REMOVE_FAILED as 0x8050801, while Microsoft's Get-MpThreatDetection page says it corresponds to 0x80508017; the two pages do not agree, so match removal failures by the symbolic name as well as the number.
The cause can also be the configured action. Microsoft's Set-MpPreference page says the actions Allow, NoAction and None "don't remediate detected threats", and that Allow and None can't be configured when tamper protection is enabled. If the Action in your event is Allow, Defender did not try to remove the threat.
Prove the cause before changing anything
All of these steps only read.
-
Open the event and write down the threat Name and ID, Severity, Path, Detection Source, Action, Action Status, Error Code and Error Description. Note the Signature Version and Engine Version.
-
Find the other events for the same threat. The detection is event 1116, "The antimalware platform detected malware or other potentially unwanted software." An action that worked is event 1117, "The antimalware platform performed an action to protect your system from malware or other potentially unwanted software." A repeat of 1118 or 1119 for the same threat ID means the action keeps failing.
-
Check whether the definitions are current. Look for event 2000 ("The antimalware definitions updated successfully.") and for 2001 ("The security intelligence update failed."). Microsoft's page tells you to update the definitions before most of the actions it lists. Microsoft's cmdlet page shows the properties AntivirusSignatureVersion and AntivirusSignatureLastUpdated in the output of Get-MpComputerStatus, so this read-only command shows how current they are:
Get-MpComputerStatus | Select-Object AntivirusSignatureVersion, AntivirusSignatureLastUpdated
- Read the list of detections on the device. Microsoft's cmdlet page says this command gets active and past malware threats that Defender detected:
Get-MpThreatDetection
- Note the Action, because Microsoft's page gives different advice for each:
| Action in the 1119 event | User action on Microsoft's page |
|---|---|
| Remove | Update the definitions, then verify that the removal was successful |
| Clean | Update the definitions, then verify that the remediation was successful |
| Quarantine | Update the definitions and verify that the user has permission to access the necessary resources |
| Allow | Verify that the user has permission to access the necessary resources |
- Look at the Path. As general advice, not Microsoft's, a detection inside a backup, an archive or a share changes what a failed removal means, so note where the file sits before acting.
An illustrative example, not from Microsoft: a 1119 event names a document inside a zip file on a user's desktop with Error Code ERR_MP_REMOVE_NOT_SUPPORTED. Microsoft's table says Defender cannot remediate threats detected inside the archive and to consider manually removing the detected resources. The fix is outside Defender.
Fix
Treat the device as having an unresolved detection until a later scan returns clean. That sentence is general advice, not Microsoft's.
Step 1: update the definitions
Before updating, record the current version with the read-only Get-MpComputerStatus command from proof step 3 and keep its output.
Risk: the next step downloads and installs new security intelligence on this device. Microsoft's page gives no way to restore the exact version you recorded. Its rollback command, MpCmdRun.exe -RemoveDefinitions -All, restores the installed security intelligence "to a previous backup copy or to the original default set", which is older and lowers protection.
Microsoft says to run MpCmdRun in an elevated Command Prompt (a window started by selecting Run as administrator), from the folder %ProgramData%\Microsoft\Windows Defender\Platform\<antimalware platform version>, or %ProgramFiles%\Windows Defender if that path does not exist. Then run:
MpCmdRun.exe -SignatureUpdate
To undo it: an exact undo does not exist, as the warning above says. Keep the newer definitions.
Step 2: scan again
Microsoft's 1119 text says "Run the scan again" if the event persists, and the error code table says to run a full system scan for 0x80508024 and 0x80508029.
Before scanning, save the list of detections from the proof section (the Get-MpThreatDetection output) so you can compare afterwards.
Disruptive step: the next command starts a full scan that reads the files on the device and can apply Defender's configured action, such as cleaning, quarantining or removing files, to any detections. Microsoft's pages give no way to bring back a file that the scan removes; a file that the scan quarantines can be listed and restored with MpCmdRun.exe -Restore, described in the undo below. Microsoft says a full scan stops automatically after seven days, and that the return code is 0 when no malware is found or malware was found and remediated, and 2 when malware was found and not remediated, user action is required, or there were scanning errors. Before running it, keep the detection list you saved and decide with the file's owner whether a removed file would be a loss. Choose a quiet time on a busy server.
In the same elevated Command Prompt and folder, Microsoft's option for a full scan is:
MpCmdRun.exe -Scan -ScanType 2
To undo it: a file the scan removed cannot be brought back by anything on Microsoft's pages. Only if a file was quarantined in error, and only after you have decided with its owner that it is safe: restoring puts the detected file back in its original location and removes it from quarantine, and the page says so when you do not give a path. The MpCmdRun page lists -Restore with these options: -ListAll lists the quarantined items, -Name <name> restores the most recently quarantined item with that threat name, and -FilePath <QuarantinedFilePath> restores one item by its quarantined file path. To list first (read-only), in the same elevated Command Prompt and folder:
MpCmdRun.exe -Restore -ListAll
Then, to restore one item by threat name (this changes the device):
MpCmdRun.exe -Restore -Name <name>
Steps Microsoft names for particular error codes
For some error codes Microsoft's table points outside the two steps above. It says a reboot is required to complete threat removal (0x80508022), to run the Microsoft Safety Scanner then update and try again (0x80508023), to follow the manual remediation steps in the Microsoft Malware Protection Encyclopedia (0x80508025), and to run Microsoft Defender Offline (0x80508030). The table gives these without detail, so no steps for them are given here.
Confirm the fix
- A new scan finishes with return code 0, and the Get-MpThreatDetection list shows no detection that is still active.
- Event 1117 appears for the threat with the action Microsoft expects, and no new 1118 or 1119 follows for the same threat ID.
- Event 2000 appears after the definitions update, with no new 2001.
- Event 1001, "An antimalware scan finished.", appears for the scan.
Return code 0 also covers "Malware found and successfully remediated", so read the events as well as the code.
What to watch afterwards
- The same threat ID returning in event 1116 after it was supposedly gone.
- Repeated 1118 or 1119 events with the same Error Code, which means the cause is not fixed.
- Event 3002, real-time protection failing, if detections stop appearing on a device that should be seeing them.
- Failed definition updates (2001), because stale definitions limit what the scan can do.
- Where the detection involved ransomware or something that could have reached data, the order of restore matters. See recovering after ransomware: clean-room restore order.
Read next
Related articles you may want next.
- Backup & RecoveryRecovering After Ransomware: Clean-Room Build, Restore Order and Assessing Backup TrustRecover without reinfection: preserve evidence, build an isolated recovery environment, choose and test a restore point, and restore in a safe order.Read article
- Backup & RecoveryHunting the backup catalogue before you restore after ransomwareHow to read backup records after ransomware to compare recovery-point evidence, intrusion timing and surviving copies before choosing a restore.Read article
- TroubleshootingWindows event logs: retention, forwarding and keeping the evidence an investigation needsHow long Windows event logs last by default, why they overwrite, and how forwarding and size settings keep evidence for an investigation.Read article
Risks and limits
These steps were researched from Microsoft's pages and have not been run or lab-tested.
Microsoft's event page describes 1118 as a noncritical failure and 1119 as critical, and gives no cause list, so the table above is the error code reference on the same page. Microsoft's pages give no way to bring back a removed file, but a quarantined item can be listed and restored with the MpCmdRun -Restore option. A scan that finds nothing on one pass does not prove the device is clean; the Safety Scanner and Defender Offline routes Microsoft names exist for that reason. Whether the machine is safe to leave on the network after a failed 1119 is a decision for the owner of the device, not something these pages decide.
Sources
- Review event logs and error codes to troubleshoot issues with Microsoft Defender Antivirus — Microsoft Learn, page dated 2026-06-01, accessed 3 December 2026
- Configure and manage Microsoft Defender Antivirus with the MpCmdRun command-line tool — Microsoft Learn, page dated 2026-06-09, accessed 3 December 2026
- Microsoft Defender Antivirus security intelligence and product updates and support — Microsoft Learn, page dated 2026-05-14, accessed 3 December 2026
- Get-MpThreatDetection — Microsoft Learn cmdlet reference, no update date shown on the page, accessed 3 December 2026
- Get-MpComputerStatus — Microsoft Learn cmdlet reference, no update date shown on the page, accessed 3 December 2026
- Set-MpPreference — Microsoft Learn cmdlet reference, no update date shown on the page, accessed 3 December 2026
This article was originally published on .