Windows

Restoring Files Quarantined or Removed by Windows Defender

Learn how to recover files that Windows Defender quarantined or removed, how to check Protection history, and what to do if the file was deleted or you need to restore it safely.

Chris Anderson
Chris Anderson
How-To Writer  •  Sep 21, 2026  •  5 min read

Windows Defender, now part of Windows Security, may quarantine or remove a file if it thinks the file is unsafe. In some cases, the file is a false positive or something you trust and need back. This guide shows how to find those files, restore them when it is safe to do so, and avoid restoring something genuinely harmful.

Warning Only restore a file if you trust its source. If Defender flagged it because it contains malware, putting it back on your PC can reintroduce the threat.

Check Windows Security Protection History

The first place to look is Protection history. This is where Windows Security records items that were quarantined, blocked, or removed. If the file is still available there, restoring it is usually straightforward.

Restoring Files Quarantined or Removed by Windows Defender
  1. Open Start and search for Windows Security, then open the app.
  2. Select Virus & threat protection.
  3. Under Current threats, choose Protection history.
  4. Look for the item that matches the file name or the time it was detected.
  5. Select the item to view details and available actions.

If the file was only quarantined, you should usually see a Restore or Allow on device option. If you choose to restore it, Windows will put it back where it came from or allow it to run again, depending on the threat entry.

Quick Tip If you are not sure which entry is yours, check the file name, the detection time, and the folder path shown in Protection history.

Restore the File from Quarantine

When Windows Defender quarantines a file, it moves it to a protected location instead of deleting it permanently. That means the file can often be restored directly from Protection history.

  1. Open the Protection history entry for the file.
  2. Review the details to confirm it is the file you want.
  3. Select Restore if it is available.
  4. If prompted, confirm your choice and approve any security warning.
Key Fact A quarantined file is more likely to be recoverable than a file that was permanently removed or deleted during cleanup.
Note The button labels can vary slightly depending on your Windows version and Defender definitions. You may see Allow on device instead of Restore.

If the File Was Deleted, Check Other Recovery Options

If Windows Security already deleted the file, restore may not be available. In that case, your best option is to recover the file from a backup, cloud sync service, or file recovery tool before it is overwritten.

Why It Matters Once a deleted file has been overwritten on the drive, recovery becomes much harder. Acting quickly improves the chances of getting it back.

Restore the File from Backup or Cloud Storage

If you use File History, OneDrive, or another backup system, search for the file name or the folder it was stored in. Restore the most recent clean copy you trust.

  1. Open the backup or cloud storage app you use.
  2. Search for the missing file or the folder where it was stored.
  3. Check older versions if the file was changed before it was removed.
  4. Restore it to a safe location first, such as the Desktop or Documents, so you can verify it before replacing the original.
Best For Users who keep regular backups and want the safest way to recover files without relying on quarantine data.

If Windows Security Removed a File You Trust

Sometimes Defender flags a legitimate program, installer, mod, script, or game file as suspicious. If you are confident the file is safe, you may be able to allow it without restoring the same detection again and again.

  1. Open Windows Security.
  2. Go to Virus & threat protection and then Protection history.
  3. Select the detection entry.
  4. Choose Allow on device or Restore, if available.
  5. If the file keeps being blocked, add the file or its folder as an exclusion only after you are certain it is safe.
Warning Do not add broad exclusions for entire drives or important system folders unless you fully understand the risk. Exclusions can create blind spots for real malware.

When the Restore Button Is Missing

If you do not see a restore option, the file may have been fully removed, or the entry may be an older detection that is no longer recoverable. That usually means you need to rely on backups or file recovery rather than Windows Security itself.

Note On work or school PCs, antivirus settings may be controlled by an administrator, which can limit or disable restoration options.

How to Prevent This from Happening Again

If a file is important and repeatedly gets flagged, it helps to confirm whether the detection is valid and to keep a backup before you make any changes. For safe files that are consistently misidentified, you can reduce future interruptions by keeping them in a known location and updating Defender definitions.

What to Do If You Still Cannot Recover It

If the file is gone from Protection history and you have no backup, recovery may still be possible with file recovery software, but results are not guaranteed. Stop writing new data to the affected drive as much as possible, because new files can overwrite the deleted one.

Warning If the missing file is extremely important, avoid installing recovery software on the same drive where the file was lost. That can reduce your chances of successful recovery.

Which Fix Should You Try First?

Start with Protection history, because that is the fastest way to restore a quarantined file. If the file is not there or no restore option exists, move on to backups, cloud version history, or recovery tools. The right choice depends on whether Defender quarantined the file, deleted it, or already cleared the record.

Topics

More from Windows

View all →
How to Fix DISM Error 0x800f0915 in Windows
Windows

How to Fix DISM Error 0x800f0915 in Windows

How to Fix Command Prompt When You Can’t Run It as Administrator
Windows

How to Fix Command Prompt When You Can’t Run It as Administrator

5 Ways to Fix HP Support Assistant When It Won’t Install
Windows

5 Ways to Fix HP Support Assistant When It Won’t Install

Why USB Devices Show Up as Unknown in Windows 11
Windows

Why USB Devices Show Up as Unknown in Windows 11

How to Fix the Windows Fast Startup Error 0xc00000d4
Windows

How to Fix the Windows Fast Startup Error 0xc00000d4

How to Fix a Volume Bar That Keeps Appearing in Windows
Windows

How to Fix a Volume Bar That Keeps Appearing in Windows