sodcalculator

10 Tech How-To

Restore Quarantined Items in Windows Defender

Guide 10-59760 · Updated · Step by step

This guide shows you how to restore files, folders, or apps that Windows Defender (Microsoft Defender Antivirus) has quarantined. You’ll learn how to find the quarantine list, safely restore an item to its original location, and what to do if the restore option is missing or the file is still blocked. No special tools are needed—just a Windows PC with Defender active and an administrator account.

What You’ll Need

  • A Windows 10 or Windows 11 PC with Microsoft Defender Antivirus enabled (the built-in antivirus).
  • Administrator privileges on the account you’re using (you’ll need to confirm a User Account Control prompt).
  • The exact name of the file or app you want to restore (if you know it, it helps, but you can browse the list).

Step-by-Step

  1. Open Windows Security. Click the Start button, type Windows Security, and press Enter. Alternatively, go to Settings > Privacy & Security > Windows Security (Windows 11) or Settings > Update & Security > Windows Security (Windows 10).
  2. Go to Virus & threat protection. In the Windows Security window, click the Virus & threat protection tile (shield icon).
  3. Open the quarantine list. Scroll down to the Current threats section. Under it, click Protection history. This shows all recent actions taken by Defender, including quarantined items.
  4. Filter for quarantined items. In the Protection history page, use the filter dropdown (top-right) and select Quarantined items. This narrows the list to only items that were removed and stored in quarantine.
  5. Select the item. Find the file or app you want to restore. Click on it to expand the details. You’ll see the threat name, the file path, and the date it was quarantined.
  6. Click Restore. In the expanded view, click the Restore button. A confirmation dialog may appear—click Yes or Restore again. If a User Account Control prompt appears, click Yes to allow the change.
  7. Verify the restoration. Once restored, the item returns to its original location. You can check by navigating to the file path shown in the details. If it was an app, you may need to restart your computer for it to work correctly.

Common Mistakes

  • Restoring without checking the threat. Always review the threat name and file path. If it’s something like a Trojan or a ransomware variant, restoring it could infect your PC. Only restore items you are certain are safe (e.g., a false positive on a program you downloaded).
  • Using the wrong filter. If you don’t filter by “Quarantined items,” you might see other protection history entries (like blocked processes) that don’t have a Restore button.
  • Clicking “Remove” instead of “Restore.” The buttons are close together. Removing permanently deletes the file, and you cannot undo that.
  • Not having administrator rights. If your account is a standard user, you’ll be prompted for an admin password. Without it, you cannot restore items.

Tips

  • Add an exclusion after restoring. If Defender keeps re-quarantining the same file, you can add an exclusion to prevent it from being scanned again. Go to Virus & threat protection > Manage settings (under Virus & threat protection settings) > Exclusions > Add or remove exclusions. Add the file, folder, or file type. Be cautious: exclusions reduce your security.
  • Restore to a different location (manual method). If the Restore button fails, you can manually extract the file from quarantine. Open the quarantine folder (usually C:\ProgramData\Microsoft\Windows Defender\Quarantine), but note that files are stored with random names and encrypted—this is not practical for most users. The built-in Restore button is the intended method.
  • Use the command line for advanced control. Open PowerShell as administrator and use the Get-MpThreatDetection cmdlet to list detections, then Remove-MpThreatDetection or Restore-MpThreatDetection (if available) to restore. This is more complex and not recommended for beginners.
  • Keep Defender updated. False positives often occur when virus definitions are outdated. Run Windows Update to get the latest definitions before restoring.

Troubleshooting

  • Restore button is greyed out or missing. This usually happens if the item was quarantined by another security product, or if Defender’s protection history has been cleared. If it’s from another product, open that product’s quarantine interface. If the history is cleared, the item may be permanently gone—you’ll need to re-download the file from a trusted source.
  • “Access denied” error when restoring. This means your account lacks permission. Log in with an administrator account, or right-click the Windows Security shortcut and choose “Run as administrator” (though Windows Security typically runs with admin rights automatically). Also, make sure the file’s original folder still exists—if the folder was deleted, restore may fail.
  • File is restored but immediately re-quarantined. Defender detects the same threat again. This indicates the file is genuinely malicious, or at least matches a detection signature. If you believe it’s a false positive, submit the file to Microsoft for analysis (via the Microsoft 365 Defender portal) and add an exclusion temporarily. Do not disable real-time protection permanently.
  • Protection history is empty or doesn’t show quarantine. If you just cleared history or used a third-party cleanup tool, the list may be gone. Try restarting the Windows Security service (WinDefend) via Services.msc, or run a full scan—new detections will appear. If the item was quarantined long ago, it may have been automatically removed after a period (Defender keeps items for a limited time).
  • Restore succeeds but the file is corrupted. Quarantine stores files in a compressed/encrypted format. If the restore process is interrupted (e.g., system crash), the file may be corrupted. In that case, delete the corrupted copy and re-download or reinstall the original software.

Frequently Asked Questions

How long does Windows Defender keep quarantined items?

By default, Defender retains quarantined items for a limited period (often 30 days, but it can vary). After that, they are automatically deleted. You can check the retention period in the Windows Security settings under “Protection history” settings, but there is no user-facing control to change it.

Can I restore an item after it has been deleted from quarantine?

No. Once an item is removed from quarantine (either manually or automatically), it is permanently gone. You would need to re-download or reinstall the file from its original source.

Will restoring a file disable my antivirus protection?

No. Restoring a single item does not disable Defender. However, if you add an exclusion to prevent re-detection, that exclusion only applies to the specified file or folder—real-time protection remains active for everything else.

What if I accidentally restored a malicious file?

If you restored a file that turns out to be malicious, immediately run a full scan with Defender. You can also right-click the file and select “Scan with Microsoft Defender” to check it again. If it’s detected, quarantine it again. In severe cases, consider using Microsoft Defender Offline scan (available in Windows Security under Virus & threat protection > Scan options).

Can I restore quarantined items from another user’s account?

No. Quarantine is per-system, but the protection history is tied to the user account that was signed in when the detection occurred. If you’re an administrator, you can switch to that user account or use an elevated PowerShell to view all detections (Get-MpThreatDetection).

Why does Defender quarantine files that I know are safe?

This is called a false positive. It can happen with newly released software, keygens, or files that behave similarly to malware (e.g., programs that modify system settings). To resolve it, update Defender definitions, submit the file to Microsoft for analysis, and if confirmed safe, add an exclusion.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →