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.
Windows Defender Quarantine Restore Quick Fix
Use the Official Restore Path Easy
- 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. - Open Protection history
Open Windows Security from Start, choose Virus & threat protection, then Protection history. You need to be signed in as an administrator. - Filter to quarantined items
Use Filters at the top and choose Quarantined items. Only entries here can be restored. - 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.
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.
More Windows Defender Quarantine Restore Solutions
Disable SmartScreen to Test Easy
- 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. - Find the reputation settings
In Windows Security, open App & browser control, then Reputation-based protection settings. - 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.
Add the File to Exclusions Easy
- 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. - 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. - 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. - Remove it later
If you no longer need the file, remove the exclusion.
Update Microsoft Defender to the Latest Version Easy
- Update the protection
In Windows Security, open Virus & threat protection, then Protection updates, and click Check for updates. - Update Windows too
Run Windows Update. The Defender platform and the Windows Security app update through it. - 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. - Restart and try again
Restart, then try the restore once more.
When It Says Quarantine Failed Medium
- 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. - 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. - Check the result
After the restart, look in Protection history again. The entry should now show the action Defender took.
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.
List Quarantined Files via MpCmdRun Command Line Medium
- 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 -ListAllwith the quotes. If that path gives an error, look for a newer copy of the tool in a numbered folder underC:\ProgramData\Microsoft\Windows Defender\Platform. - 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. - 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.
Restore a Specific File via MpCmdRun Medium
- 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", replacingC:\path\to\filewith the original file path shown in the list. Keep the quotes if the path contains spaces. - Or restore to another folder
Add-Path C:\Restoredto 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. - 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.
Repair Windows Defender Components Advanced
- 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. - Check from PowerShell
In an administrator PowerShell window, runGet-MpThreatDetection. It lists each detection with the file paths involved and what happened to them. - Check Defender's mode
RunGet-MpComputerStatusand 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. - 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, runGet-AppxPackage Microsoft.SecHealthUI | Reset-AppxPackagein an administrator PowerShell window, then restart. On Windows 10, skip this command and use the system-file repair below. - Repair system files
In an administrator Command Prompt, runDISM /Online /Cleanup-Image /RestoreHealth, thensfc /scannow, and restart.
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.
- 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. - 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. - 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.

