Windows Defender on Windows 11 moves suspicious files into quarantine, isolating them from your system to prevent potential harm. Occasionally, important files or trusted programs are mistakenly flagged and quarantined due to false positives, heuristic scanning, or signature issues. Recovering these files quickly is crucial to avoid workflow disruptions and potential data loss.
Restore Quarantined Files Using Windows Security (GUI)
Windows Security into the Start menu and selecting the matching result. This app manages security features including virus and threat protection.



Restored files may be immediately re-quarantined if real-time protection is active and Defender still flags them as threats. If this occurs, temporarily disable real-time protection before restoring the file, and re-enable it afterwards to maintain security.
Join readers who trust AllThings.How
Add us as a preferred source on Google so our practical guides show up first next time you search.
Add to Google Preferences →Restore Quarantined Files Using Command Prompt
When files do not appear in Protection History or the restore button is unavailable, the command line offers more control. This method is especially useful if files are missing from the UI or if Defender fails silently due to folder changes or permission issues.
Win + X and select Terminal (Admin) or Command Prompt (Admin).
cd "%ProgramFiles%\Windows Defender"

MpCmdRun.exe -restore -listall
This command displays all files currently quarantined, along with their threat names. If the file does not appear in Protection History, it may still appear here.

MpCmdRun.exe -restore -name "ThreatName"
Replace "ThreatName" with the actual threat name or identifier from the list. For files originally located in folders that have since been renamed or deleted, specify a new path using:
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Restore -name "ThreatName" -Path "C:\RestoredFiles"
This command restores the file to the specified directory.
If you encounter permissions errors, ensure you are running the command as an administrator. If the file is immediately re-quarantined, temporarily disable real-time protection before restoring and re-enable it afterwards.
Restore Quarantined Files Using PowerShell
PowerShell offers another way to interact with Defender’s quarantine, especially for advanced users or bulk operations.

Get-MpThreatDetection | Where-Object { $_.ActionsTaken -match "Quarantine" } | Format-Table -AutoSize

Restore-MpThreatDetection -Name "ThreatName"
Replace "ThreatName" with the exact name from the previous step.
Download or Collect Quarantined Files (For IT Administrators)
In enterprise environments or with Microsoft Defender for Endpoint, administrators can use the Download or Collect File feature. This allows the quarantined file to be downloaded as a password-protected archive for further analysis or manual restoration. This option is typically available in Defender’s management portal and may require appropriate permissions.
Recover Deleted or Missing Files with Data Recovery Tools
If the above methods fail—such as when Defender has permanently deleted the file or the quarantine database is corrupted—specialized data recovery software provides another solution. Tools like MyRecover scan your drives for recoverable remnants of deleted files, even after quarantine purges.

Some advanced tools allow you to preview file contents before recovery, which can help confirm you are restoring the correct file, especially if filenames are lost or corrupted.
Restoring quarantined files in Windows Defender on Windows 11 is possible using built-in tools or command-line methods, and advanced recovery is available if files are deleted. Always verify the file’s safety before restoring and consider adding trusted files to Defender’s exclusions to prevent repeat quarantines.






