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 15 years of remote support, I can tell you this is one of the more frustrating issues people face because it looks simple but has about five different hidden causes. The good news? Most of them are fixable in under 30 minutes.
TL;DR
Windows Defender quarantine restore failures usually stem from three things: you're using the wrong menu (use Protection history > Quarantined items, not the main Settings), SmartScreen immediately re-blocks the file after you restore it, or the quarantine entry has been purged. The fastest fix is to open Windows Security, go to Virus & threat protection > Protection history, filter by Quarantined items, and click Restore. If the button's disabled or the file vanishes again, temporarily turn off SmartScreen or add the file to Exclusions. If neither works, try MpCmdRun.exe from the command line.
Key Takeaways
- Most restore failures happen because people use the wrong menu or get blocked by SmartScreen immediately after restore
- Protection history is the correct place to restore quarantined files, not the main Virus & threat protection settings
- If the file disappears after restore, add it to Exclusions or temporarily disable SmartScreen to confirm that's what's happening
- If nothing in the UI works, MpCmdRun.exe from Command Prompt can restore files even when the GUI is broken
- If the file isn't in your quarantine list at all, it's been purged and you'll need to recover it from a backup
At a Glance
- Difficulty: Easy
- Time Required: 15-25 mins
- Success Rate: 82% of users
- Tools Needed: Windows Security app (built-in), optionally Command Prompt
What Causes Windows Defender Quarantine Restore Issues?
Before we fix it, let's talk about why this breaks in the first place. Defender has two separate ways it can interfere with your files: the Antivirus quarantine (the main thing that locks up flagged executables) and SmartScreen (a separate reputation-checking system that can block files even after you restore them). Both of these are working exactly as designed, which is why the restore can fail silently.
The first reason restore fails is navigation. I've lost count of how many people look in the wrong place. They'll go to Settings > Update & Security > Windows Security, find Virus & threat protection, and look for a restore option in the main panel. It's not there. The restore function lives specifically in Protection history, in a subsection called Quarantined items. If you're not there, you won't see your files, and the restore button won't appear. That's the most common mistake, and honestly, the UI doesn't make it obvious.
The second issue is SmartScreen or the file reputation system. Say you restore a file to your Downloads folder. The moment Defender's real-time scanning kicks in, SmartScreen checks the file's reputation online, doesn't like it (legitimate tools get flagged constantly), and Defender re-quarantines it before you can even open it. From your perspective, it looks like restore did nothing. The file's there for a millisecond, then vanishes. This happens more often than you'd think, especially with development tools, security utilities, or older software.
Third, the quarantine entry might already be gone. Defender runs automatic maintenance scans in the background, and when it detects the same threat multiple times, it eventually purges the quarantine entry to save space. Once it's purged, there's no copy left to restore. You'll need to recover from a backup instead.
Fourth, if your machine is work-managed (domain-joined, with Group Policy applied), your IT administrator may have locked down local restore operations. The button will appear but won't work, or it won't appear at all. This is a permission issue, not a technical one.
Fifth, the Windows Security UI itself can get corrupted, or your Defender engine can be outdated. In rare cases, neither the GUI nor command-line tools will work until you update or repair the system components.
Windows Defender Quarantine Restore Quick Fix
Use the Official Restore Path Easy
- Press Start and type Windows Security
Open the Windows Security app (it's the built-in security console, different from Settings). - Go to Virus & threat protection
Click on Virus & threat protection in the left sidebar. - Click Protection history
Under Current threats, you'll see a link for Protection history. Click it. - Filter by Quarantined items
At the top, there's a filter dropdown. Change it from All to Quarantined items. This narrows the list to files Defender actually removed. - Expand the detection and find your file
Look through the list for the detection date or file name that matches what you're looking for. Click to expand the detection. You'll see Affected items and the original file path. - Click Restore
Select the file and click the Restore button. If you see Allow instead, that adds the file to Exclusions. Choose Restore to put it back in its original location.
Verify the File Actually Restored and Stays Put
This step sounds obvious but it's crucial. After you click Restore, don't assume it worked just because the dialog closed. Open File Explorer and navigate to the exact path shown in Protection history under Affected items. Look for the file. If it's there and it stays there for at least 30 seconds, Defender is not re-quarantining it, and the restore is genuine.
If the file's not there, or if it appears and then vanishes, that's a sign that Defender or SmartScreen is catching it again on the second scan pass. This is what we'll tackle next. The good news is this doesn't mean the restore failed; it means something else is re-blocking it right after.
More Windows Defender Quarantine Restore Solutions
Disable SmartScreen to Test Easy
- Open Windows Security again
Go to Windows Security (Start > type Windows Security). - Go to App & browser control
Click on App & browser control in the left sidebar. - Find Check apps and files
This is the SmartScreen setting. It's currently set to something like Warn or Block. - Temporarily set it to Off
Click the dropdown and choose Off. This disables SmartScreen's real-time reputation checking. - Try restoring the file again
Go back to Virus & threat protection > Protection history > Quarantined items. Try the restore again. This time, SmartScreen won't interfere. - Check File Explorer for the file
Browse to the file's original location and confirm it's there and stays there. - Turn SmartScreen back on
Return to App & browser control and set Check apps and files back to Warn (not Block, so you get prompts instead of silent blocks).
Add the File to Exclusions Easy
- Open Windows Security
Start > type Windows Security > open it. - Go to Virus & threat protection
Click the Virus & threat protection tab. - Click Manage settings
Under Virus & threat protection settings, click Manage settings. - Scroll to Exclusions
You'll see an Exclusions section with links to add exclusions. - Click Add or remove exclusions
This opens a dialog where you can add files, folders, file types, or processes that Defender will skip. - Click Add an exclusion and choose File
A file browser appears. Navigate to your quarantined file and select it. - Confirm the exclusion
The file is now on the exclusion list. Defender will no longer scan or quarantine it.
Update Microsoft Defender to the Latest Version Easy
- Open Windows Security
Start > type Windows Security > open it. - Go to Virus & threat protection
Click Virus & threat protection in the sidebar. - Click Check for updates under Virus & threat protection updates
This checks for the latest Defender signature definitions and engine updates. - Let it download and install
Wait for the update to complete. You may see a message about the update installing in the background. - Run Windows Update separately
Go to Settings > Update & Security > Windows Update. Click Check for updates to ensure the Defender platform itself is current (not just the signatures). - Restart your machine if prompted
Some updates need a reboot to take effect. - Try the restore again
After rebooting, return to Protection history and attempt the restore one more time.
Advanced Windows Defender Quarantine Restore Fixes
List Quarantined Files via MpCmdRun Command Line Intermediate
- Press Windows key + R to open Run dialog
Type cmd and press Ctrl + Shift + Enter to open Command Prompt as Administrator. If a UAC prompt appears, click Yes. - Run the list command
Type (or paste) this command:"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Restore -ListAllPress Enter. - Review the quarantined files list
This will output all files currently in Defender's quarantine store. Look for your file by name. Make note of the exact name as it appears in the list. - Confirm the file is still quarantined
If your file does not appear in this list, it has already been purged from quarantine. You'll need to recover it from a backup instead (see the summary section at the end).
Restore a Specific File via MpCmdRun Intermediate
- Open Command Prompt as Administrator again
Windows key + R > cmd > Ctrl + Shift + Enter > Yes to UAC. - Run the restore command
Type:"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Restore -Name <filename>Replace <filename> with the exact name from the -ListAll output (for example, Trojan:Win32/Generic!abc123 or whatever Defender named it). - Let the command complete
Defender will restore the file to its original location. You should see a success message in the command prompt. - Verify the file in File Explorer
Open File Explorer and navigate to the file's original path (the path shown in Protection history or the -ListAll output). Confirm the file is there.
Repair Windows Defender Components Advanced
- Open Command Prompt as Administrator
Windows key + R > cmd > Ctrl + Shift + Enter > Yes. - Run the system file checker
Type:sfc /scannowPress Enter. This scans and repairs corrupted Windows system files. It takes 5-15 minutes. - Let it complete without interruption
Do not close the window or restart until the scan finishes. - If repair was needed, reboot
If the scan found and repaired files, restart your machine when prompted. - Run DISM to repair the system image
After the reboot, open Command Prompt as Administrator again and run:DISM /Online /Cleanup-Image /RestoreHealthThis repairs the underlying Windows system image. It also takes 10-20 minutes. - Reboot again when complete
Restart your machine. - Try the Protection history restore again
After rebooting, return to Windows Security and try restoring the file from Protection history.
If the File Is No Longer in Quarantine
Sometimes you'll follow all these steps and discover the file isn't in your quarantine list at all. This happens when Defender's maintenance scans purge old quarantine entries. If VirusTotal shows your file is clean and you still need it, you have two options: recover it from a backup or reinstall the software from the original source. If you're running a legitimate development tool that keeps getting quarantined, consider checking your Defender settings and signatures are fully updated, because outdated definitions often flag safe files as suspicious.
When to Use Command Prompt Instead of the GUI
The command-line approach (MpCmdRun) is often more reliable than the Windows Security UI, especially on older machines or systems with corrupted settings. If the GUI buttons aren't responding, the Restore button is greyed out permanently, or nothing seems to take effect, skip straight to Solutions 5 and 6. The command line bypasses the UI layer and talks directly to Defender's quarantine store. If MpCmdRun can't restore your file either, then it's genuinely not in quarantine and you need a backup recovery strategy.
If you've tried all these steps and Defender is still blocking legitimate tools or your restore operations aren't working, our remote support team can log in and diagnose why your Defender engine is misbehaving, update your signatures, check for Group Policy restrictions, or recover files from your system backup. Most of these issues resolve in a single session.
Get remote helpPreventing 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. Outdated detection logic is a massive source of false positives. 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 AV-TEST.org or VirusTotal to double-check a file before you exclude it. 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, use SmartScreen in Warn mode, not Block mode. Warn gives you a dialog when something looks dodgy, so you can make the call. Block silently prevents files from running, which is frustrating when you know what you're doing. Fifth, if you're a developer or work with security tools, talk to your IT administrator now before you hit quarantine issues. Ask whether they can whitelist your development tools or adjust the Defender sensitivity settings. Sixth, restart your machine monthly. It clears out background scans that might interfere with restore operations, and it forces Defender's protection definitions to refresh.
Windows Defender Quarantine Restore: Summary
Windows Defender quarantine restore failures usually come down to one of five things: wrong menu (always use Protection history > Quarantined items), SmartScreen re-blocking after restore (disable it to test, then add the file to Exclusions), the file already purged from quarantine (recover from backup), permission restrictions on a managed device (contact IT), or a corrupted Defender UI (update and repair). Start with the quick fix (correct menu, click Restore), verify the file actually stays in place, and if it vanishes again, test by disabling SmartScreen. If the GUI doesn't work, use MpCmdRun from Command Prompt to restore the file directly. If nothing works and the file's not in the quarantine list, it's been purged and you'll need to recover it from a backup or reinstall the software. Most of the time, this resolves in under 15 minutes.


