● UK tech experts · info@vividrepairs.co.uk
Vivid Repairs
A Windows 10 laptop screen showing Windows Security with Protection History and quarantined items list, clean desk with focused lighting
Fix It Yourself · Troubleshooting

Windows Defender quarantine restore not working?

Updated 6 November 202613 min read
As an Amazon Associate, we may earn from qualifying purchases. Our ranking is independent.

You try to restore a file from Windows Defender quarantine in Windows 10, hit the Restore button, and nothing happens. Or the button's greyed out entirely. After more than 20 years of remote support, I know there's more to this one than a broken button. Several different things can stop a restore.

What Causes Windows Defender Quarantine Restore Issues?

When Microsoft Defender Antivirus quarantines a file, it moves it into a locked store and records it in Protection history. Restoring puts it back. When that doesn't work, it's usually one of these.

You're looking at the wrong entry. Protection history lists more than quarantined files. A Threat blocked item has no quarantined copy to restore, though it can still have Actions > Allow. A Threat found - action needed item can offer Quarantine or Allow on device. A Threat quarantined item is the one with Restore.

The file gets caught again. Restoring a file doesn't tell Defender it's safe. Real-time protection can detect and quarantine it again straight away, and SmartScreen or Smart App Control can block it when you run it.

It's no longer in quarantine. Quarantined items can be removed after the retention period set by the device or work policy, though a policy can keep them indefinitely. An item marked "Removed" was deleted rather than quarantined.

A work policy is in the way. On a work PC, IT policy can hide or lock these options.

Defender itself needs updating or repairing. An out-of-date Defender platform, or a damaged Windows Security app, can make the buttons fail.

Quick routeStart here

Windows Defender Quarantine Restore Quick Fix

1

Use the Official Restore Path Easy

  1. Make sure it's safe first
    Only restore a file you trust, such as one you wrote or downloaded from the maker's own site. Defender usually quarantines things for a reason.
  2. Open Protection history
    Open Windows Security from Start, choose Virus & threat protection, then Protection history. You need to be signed in as an administrator.
  3. Filter to quarantined items
    Use Filters at the top and choose Quarantined items. Only entries here can be restored.
  4. Open the entry and use Actions
    Select the entry to expand it, check the affected file path, then click Actions and choose Restore. Defender will detect it again and create a new Threat found - action needed entry. Only if you're certain the file is safe, open that new entry and choose Allow on device. If there's no Actions button, the entry isn't a quarantined item, you're not signed in as an administrator, or policy hides it.
If the file reappears at the path shown and stays there, the restore worked.

Verify the File Actually Restored and Stays Put

Don't rely on the window closing. Open File Explorer at the exact path the entry showed and check the file is there. Leave it a minute and look again, then refresh Protection history. A new detection for the same file means real-time protection caught it again as soon as it came back.

If the file is there but won't run, that's a different block, usually SmartScreen or Smart App Control, and fix 2 covers it.

Intermediate routeKeep going if needed

More Windows Defender Quarantine Restore Solutions

2

Disable SmartScreen to Test Easy

  1. Check the file first
    Only upload a file you can safely share. VirusTotal shows whether its partner engines detect it, but a clean result doesn't prove it's safe, and public submissions can be shared with its community and partners. Don't carry on if it's detected or you don't trust where it came from.
  2. Find the reputation settings
    In Windows Security, open App & browser control, then Reputation-based protection settings.
  3. Turn off Check apps and files for the test
    Turn it off, run the restored file once, then turn it straight back on. On Windows 11, Smart App Control can also block unsigned apps. Don't switch that off just to test. Recent Windows updates can let you turn it back on, but some PCs still need a reset or reinstall before it can be enabled again.
If the file runs with Check apps and files off, SmartScreen was blocking it. Turn the setting back on.
3

Add the File to Exclusions Easy

  1. Only for a file you trust
    An exclusion stops Microsoft Defender Antivirus checking that file or folder in real time, so it won't catch anything bad that ends up there later. A folder exclusion leaves everything put there less protected, so use the smallest exclusion you can.
  2. Add the exclusion
    In Windows Security, go to Virus & threat protection > Manage settings > Exclusions > Add or remove exclusions. Click Add an exclusion and choose File, or Folder for the folder you'll restore it to.
  3. Restore it again
    Go back to Protection history and restore the item. With the exclusion in place, real-time protection won't quarantine it again.
  4. Remove it later
    If you no longer need the file, remove the exclusion.
If the file now stays put, real-time protection was re-quarantining it.
4

Update Microsoft Defender to the Latest Version Easy

  1. Update the protection
    In Windows Security, open Virus & threat protection, then Protection updates, and click Check for updates.
  2. Update Windows too
    Run Windows Update. The Defender platform and the Windows Security app update through it.
  3. Check which antivirus is in charge
    If you've installed another antivirus, Defender turns its own real-time protection off, and that product may have quarantined the file. Look in its own quarantine or vault, not Defender's.
  4. Restart and try again
    Restart, then try the restore once more.
5

When It Says Quarantine Failed Medium

  1. Know what it means
    "Quarantine failed" in Protection history means Defender didn't quarantine the threat. There's nothing in quarantine to restore, and the threat may still be on the PC. Open the entry and note any error details.
  2. Run an offline scan
    Save your work. This scan can remove a detected file, so make sure any important original file has a clean backup before you continue. Then in Windows Security go to Virus & threat protection > Scan options, choose Microsoft Defender Antivirus (offline scan) and click Scan now. The PC restarts and scans before Windows loads, when nothing has the file open.
  3. Check the result
    After the restart, look in Protection history again. The entry should now show the action Defender took.
If the offline scan dealt with it, the threat's been handled. Restore the file only if you're sure it was a false alarm.
Advanced routeChange one thing at a time

Advanced Windows Defender Quarantine Restore Fixes

Defender has its own command-line tool, MpCmdRun, and it can list and restore quarantined items even when the Windows Security window won't. Run it from an administrator Command Prompt.

6

List Quarantined Files via MpCmdRun Command Line Medium

  1. Use the full path
    MpCmdRun isn't on the system path, which is why typing it alone gives "'mpcmdrun.exe' is not recognized as an internal or external command". Run "%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Restore -ListAll with the quotes. If that path gives an error, look for a newer copy of the tool in a numbered folder under C:\ProgramData\Microsoft\Windows Defender\Platform.
  2. Read the list
    Each entry shows the threat name Defender gave the detection and the files it quarantined under that name. Note the threat name, because that's what the restore command uses.
  3. If your file isn't listed
    Then it's no longer in quarantine, and the section below on files that are no longer in quarantine covers what you can still do.
7

Restore a Specific File via MpCmdRun Medium

  1. Restore a trusted file by path
    Only continue if you're certain the file is safe. Run "%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Restore -FilePath "C:\path\to\file", replacing C:\path\to\file with the original file path shown in the list. Keep the quotes if the path contains spaces.
  2. Or restore to another folder
    Add -Path C:\Restored to put the files in a folder you choose instead of their original place. The item stays in quarantine when you use -Path. To restore every item with one threat name, use -Restore -Name "ThreatName" -All, and only after you've checked every matching item.
  3. Check it stayed
    Look for the file in File Explorer. If it disappears again, add an exclusion first (fix 3) and run the restore again.
8

Repair Windows Defender Components Advanced

  1. Read Defender's own log
    Open Event Viewer and go to Applications and Services Logs > Microsoft > Windows > Windows Defender > Operational. A detection is logged as event 1116 and the action taken as 1117. Restore events are logged too, and an error there gives you the reason it failed.
  2. Check from PowerShell
    In an administrator PowerShell window, run Get-MpThreatDetection. It lists each detection with the file paths involved and what happened to them.
  3. Check Defender's mode
    Run Get-MpComputerStatus and look at AMRunningMode. Normal means Defender is the active antivirus. Passive or SxS Passive Mode means Defender isn't the primary antivirus, so check the other product's quarantine too. EDR Block Mode is an organisation-managed setup and can still respond to threats, so ask IT which quarantine to check.
  4. Reset the Windows Security app
    Resetting Windows Security permanently deletes its app data and preferences. On Windows 11, if the window won't open or its buttons do nothing, run Get-AppxPackage Microsoft.SecHealthUI | Reset-AppxPackage in an administrator PowerShell window, then restart. On Windows 10, skip this command and use the system-file repair below.
  5. Repair system files
    In an administrator Command Prompt, run DISM /Online /Cleanup-Image /RestoreHealth, then sfc /scannow, and restart.
When to stop. If VirusTotal or another scanner also flags the file, or you can't say where it came from, don't restore or exclude it. Removing it from quarantine can be permanent. If it might be an important original file, leave it quarantined and recover a clean copy from a backup or the maker. Otherwise, remove it from quarantine and get the software again from its maker. If a work PC hides these options, the block is policy, so ask IT rather than trying to get round it.

If the File Is No Longer in Quarantine

If the file isn't in Protection history under Quarantined items, and "%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Restore -ListAll doesn't list it, there is no current Microsoft Defender quarantine copy to restore. It may have been removed, never quarantined, or handled by another antivirus. Depending on the device or work policy, Defender can remove quarantined items after its retention period, or keep them indefinitely. A detection marked "Removed" was deleted at the time.

That leaves a backup. Check File History, OneDrive's own version history and recycle bin, or any other backup you keep. If an external backup drive won't connect, get it working first. If it's software, download it again from the maker. If Defender won't turn on and shows error 0x800704ec, our guide on that specific error can help.

When to Use Command Prompt Instead of the GUI

Use the command line when Windows Security won't open, the Actions button is missing for an item you know is quarantined, or the restore appears to work but nothing comes back. MpCmdRun talks to Defender directly and gives you a clear message when it can't restore something. The window is still the easiest route for a single file.

If MpCmdRun can't find the item either, it really has gone from quarantine, and the previous section applies. Asking someone for help? Copy the exact message the command prints, because it says which step failed.

For IT Pros: Windows Defender Quarantine Restore

On managed PCs, quarantine behaviour is set by policy, and IT may control what users can do locally.

  1. Check how long quarantine keeps items.
    The policy Configure removal of items from Quarantine folder (Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Quarantine), or the matching Intune setting, decides when quarantined files are deleted.
  2. Check whether the user can see the options.
    Windows Security can hide the Virus and threat protection area by policy, which removes the restore route for users.
  3. Download or collect centrally.
    On devices onboarded to Microsoft Defender for Endpoint, you can download or collect a quarantined file from the device's file page in the Microsoft Defender portal.

Preventing Windows Defender Quarantine Restore Issues

The best fix is prevention. Here are the moves that will save you this headache in the future. First, keep Defender updated. Run Windows Update at least once a month, and check Windows Security for Defender signature updates separately. Second, if you have a tool you use regularly that Defender keeps quarantining, add it to Exclusions after you verify it's actually safe. Use VirusTotal to see whether its partner engines flag a file, but don't upload confidential files. If only Defender flags software you trust, report the false positive to Microsoft. Third, maintain backups. File History is simple to set up and runs in the background. If something does get purged from quarantine and you need it, you can pull it from your backup.

Fourth, leave SmartScreen's Check apps and files on. It warns you about unrecognised apps and lets you decide. Fifth, if you're a developer or work with security tools, talk to your IT administrator before you hit quarantine issues. Ask whether they can verify the file, submit a false positive to Microsoft, or approve a tightly scoped exclusion. Sixth, restart now and then, so Windows and Defender updates finish installing.

Windows Defender Quarantine Restore: Summary

A quarantine restore that won't work usually means the entry isn't a quarantined item, real-time protection is catching the file again, a work PC policy is restricting the action, or the item has already been removed. Filter Protection history to Quarantined items and use Actions > Restore, check the file stays put, and add an exclusion only for a file you trust. If the window won't help, MpCmdRun with its full path lists and restores by threat name. If the item isn't there at all, it's gone from quarantine, so recover it from a backup or download it again.

Frequently Asked Questions

In Protection history, filter to Quarantined items and check the entry says Threat quarantined, because that's the only kind with Restore. You'll also need administrator rights to see threat details. On a work PC, policy can hide the Virus & threat protection area, so ask IT whether Microsoft Defender Antivirus policies stop you restoring locally.

Defender's real-time protection is most likely detecting it again. If you trust the file, add an exclusion for it and restore it once more. A file that stays put but gets blocked when you run it is a separate problem, and SmartScreen or Smart App Control may be behind that.

First check you're in the right place, which is Windows Security > Virus & threat protection > Protection history > Quarantined items. Protection history only keeps events for two weeks, so check the quarantine itself as well. Run "%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Restore -ListAll from an administrator Command Prompt. If it isn't listed there either, there's no current Defender quarantine copy to restore.

Not from Defender, once it's gone from the quarantine itself. Protection history only shows two weeks of events, though, so check the current quarantine with MpCmdRun before you give up on it. If MpCmdRun doesn't list it, recover it from a backup, such as File History, a system image or cloud backup, or reinstall the application from a trusted source.

Restore puts the file back where it was, and then Defender detects it again. That creates a new Threat found - action needed entry, and Allow on device is the option on that entry. It tells Defender to allow the threat on this PC, so only use it if you're certain the file is safe.