|

How To Restore A File Quarantined By Windows Defender (2026)

Windows Security sometimes removes or blocks a file that you know is safe, and it can feel as if the file has simply vanished.

In most cases Microsoft Defender has moved it to quarantine, where it cannot run but can still be restored.

This guide follows Microsoft’s own support pages and shows how to find the file, restore it, and stop Defender from flagging it again.

Quick answer: which fix to use

Pick the row that matches what happened to your file.

What happenedWhat to doWhere
Defender quarantined a fileRestore it from quarantined threatsWindows Security, Threat history
You clicked Allow earlier and changed your mindSelect Don’t allowAllowed threats
A safe file keeps getting flaggedAdd an exclusionManage settings, Exclusions
An app cannot save to Documents or PicturesAllow the app through Controlled folder accessManage ransomware protection

What quarantine means

When Defender finds a threat it can remove the file, quarantine it, or let you allow it.

Remove deletes the file, quarantine moves it somewhere safe and blocks it from running, and allow lets it run.

Microsoft says a quarantined file does not pose any risk to your PC, and you can keep it there as long as you like.

Find the quarantined file

  1. Search the Start menu for Security and open Windows Security.
  2. Select Virus & threat protection.
  3. Under Current threats, select Threat history.
  4. Under Quarantined threats, select See full history.

You can also open Protection History from the left-hand menu in Windows Security, which lists scan results and actions Defender has taken.

Each item has an alert level to help you judge it, from Low up to Severe.

Alert levelWhat Microsoft says it means
SevereWidespread or highly dangerous malware that can affect your privacy and damage your PC
HighPrograms that can collect personal information or change your PC
MediumPrograms that might affect privacy or change how your PC behaves
LowUnwanted software that might collect information or change how your PC works

Restore a quarantined file

From the quarantined threats list you can remove everything, remove or restore a single file, or view its details.

  1. Open the quarantined threats list as described above.
  2. Select the file you want back.
  3. Choose Restore.

Microsoft says restoring returns the file to its original location, and you may be asked for an administrator password.

Only restore or allow a file if you trust the software and the publisher, because allowed files stop generating alerts.

Undo an Allowed threat

The Allowed threats page lists items you chose to allow, and Windows Security will not act on them.

To reverse a choice, select the item and then select Don’t allow.

Defender will then act on the item the next time it detects it.

Add an exclusion so a safe file is not flagged again

Restoring a file does not stop Defender from catching it on the next scan, so an exclusion is the usual follow-up.

  1. Open Windows Security and select Virus & threat protection.
  2. Under Virus & threat protection settings, select Manage settings.
  3. Select Add or remove exclusions.
  4. Select Add an exclusion and choose File, Folder, File type or Process.
  5. Pick the item and confirm.

Microsoft warns that exclusions stop Defender from checking the items, which can increase your risk.

Update your security software and check the item before you exclude it, because excluded files are not scanned.

Choose the right exclusion type

TypeWhat it covers
FileOne specific file
FolderA folder and all files in it
File typeEvery file with an extension such as .docx or .pdf
ProcessFiles opened by that process skip real-time scanning

Microsoft notes that exclusions apply only to real-time scanning, so scheduled scans, including third-party scans, may still check them.

For a process exclusion, Microsoft advises using the full path and file name.

Wildcards work too, so an asterisk matches any number of characters, and environment variables such as %ALLUSERSPROFILE% are accepted.

Remove an exclusion later

  1. Go back to Manage settings and select Add or remove exclusions.
  2. Select the exclusion.
  3. Select Remove.

Doing this once you no longer need an exclusion puts the item back under Defender’s real-time checks.

If an app is blocked from saving files

Controlled folder access blocks untrusted apps from changing files in protected folders, which include Documents, Pictures, Videos, Music and Desktop by default.

Microsoft says to note the blocked app’s path, select the message, choose Add an allowed app, and browse to the program.

It reaches the setting through Virus & threat protection, then Manage ransomware protection.

If you cannot save to a protected folder, Microsoft suggests saving elsewhere, allowing the app, and then moving the file.

Only add apps you trust, since a compromised allowed app could reach protected data.

If you are not sure a file is clean, run a scan first with our guide to scanning Windows 11 for malware with Windows Security.

To switch protection off for a short test instead, see how to turn off Microsoft Defender real-time protection.

If an app is blocked by a different warning, our guide to turning off SmartScreen covers that prompt.

Official sources

Leave a Reply

Your email address will not be published. Required fields are marked *