Microsoftbeginner

How to Release Files from Microsoft Defender Quarantine

Learn how to release files from Microsoft Defender quarantine on Windows 10 and 11. Restore quarantined files, add exclusions, and safely recover false positives.

5 min readUpdated January 2025

Microsoft Defender quarantines files it detects as threats, but sometimes legitimate files get flagged as false positives. This guide shows you how to safely restore quarantined files on Windows 10 and Windows 11, and prevent Defender from re-quarantining them.

Method 1: Restore via Windows Security App

The easiest method for most users:

  1. Open Windows Security:
    • Windows 11: Settings > Privacy & security > Windows Security > Open Windows Security
    • Windows 10: Settings > Update & Security > Windows Security > Open Windows Security
  2. Go to Protection History:
    • Click Virus & threat protection
    • Under "Current threats," click Protection history
  3. Find the quarantined file:
    • Click Filters and select Quarantined Items
    • Click on the file you want to restore
  4. Restore the file:
    • Click Actions
    • Select Restore

Note: If the file isn't listed, it may have been permanently deleted (files are held for approximately 30 days) or was a severe threat removed immediately.


Method 2: Restore via Command Prompt

Use this method if the Windows Security interface isn't working or the file doesn't appear in Protection History.

  1. Open Command Prompt as Administrator:
    • Right-click Start button
    • Select Terminal (Admin) or Command Prompt (Admin)
  2. Navigate to the Defender folder:
    cd "%ProgramFiles%\Windows Defender"
  3. List all quarantined files:
    MpCmdRun.exe -restore -listall
  4. Restore a specific file:
    MpCmdRun.exe -restore -name "Filename.exe"

    Replace "Filename.exe" with the actual file name


Add an Exclusion (Prevent Re-Quarantine)

After restoring a file, Defender may quarantine it again on the next scan. Add an exclusion to prevent this:

  1. Open Windows Security
  2. Go to Virus & threat protection
  3. Under "Virus & threat protection settings," click Manage settings
  4. Scroll to Exclusions and click Add or remove exclusions
  5. Click + Add an exclusion
  6. Choose File or Folder
  7. Select the restored file

Defender will now ignore this file in future scans.


When Is It Safe to Restore?

✅ Safe to Restore❌ Do NOT Restore
Software from official websitesUnexpected email attachments
Known game mods or toolsCracked software or keygens
Scripts you wrote yourselfFiles you don't recognize
Development/automation toolsDownloads from sketchy websites
Files you verified on VirusTotalTorrented content

How to Verify a Suspicious File

If you're unsure whether a file is safe:

  1. Go to VirusTotal.com
  2. Upload the file or paste the download URL
  3. VirusTotal scans it with 70+ antivirus engines
  4. Review the results - if only 1-2 engines flag it as suspicious, it's likely a false positive

Common False Positive Scenarios

  • Game mods and trainers: Often flagged due to memory manipulation code
  • Automation tools: AutoHotkey scripts and similar tools
  • Development tools: Python scripts, batch files, custom utilities
  • Older software: Legacy programs not in Microsoft's database
  • Open-source software: New releases before they're cataloged

Quarantine vs. Removal

ActionWhat Happens
QuarantineFile moved to secure location, can be restored
RemoveFile permanently deleted, cannot be recovered
Allow on deviceFile excluded from future scans

Frequently Asked Questions

Find answers to common questions

Microsoft Defender stores quarantined files in a secure encrypted location at C:\ProgramData\Microsoft\Windows Defender\Quarantine. These files cannot be accessed directly through File Explorer. You must use Windows Security app or command-line tools to restore them.

Need Professional Help?

Our team of experts can help you implement and configure these solutions for your organization.