How to Recover Quarantined Files from Defender

how to recover quarantined files from Windows Defender using Protection History

Microsoft Defender suddenly removing a downloaded installer, ZIP archive, work document, or utility can be alarming—especially when you know the file came from a source you trust. Fortunately, a file flagged by Defender is not always permanently deleted. In many cases, it is simply isolated in quarantine and can still be restored.

If you are trying to find how to recover quarantined files from Windows Defender, start with Windows Security rather than installing recovery software immediately. Microsoft Defender can normally restore an item while it still exists in quarantine. However, if Defender has already removed the file and no quarantine copy remains, the problem becomes a deleted-file recovery case.

This guide walks through both situations. You will learn how to restore a quarantined item through Protection History, use Microsoft’s MpCmdRun utility when the graphical interface fails, recover a genuinely removed file, and prevent the same trusted file from being quarantined again.

For broader cases involving files that have actually been erased, see our 削除ファイル復元 guide. If the original file is no longer available through Defender, Magic Data Recovery can scan the affected storage device for recoverable data.

Windows 7/8/10/11およびWindows Serverをサポート

重要 Never restore a Defender detection simply because you need the file. Confirm that the file, developer, and download source are trustworthy first.

目次

Quick Answer: How to Recover Quarantined Files from Windows Defender

The right method depends on what Microsoft Defender actually did.

状況

ベスト・ソリューション

File appears under Quarantined Items

Restore it through Windows Security

Restore option is missing but quarantine still exists

MpCmdRun を使用する

File was removed and is no longer quarantined

Check backups or use data recovery

File came from an official download source

Download a fresh copy

Restored file is detected again

Verify it, then allow only if you trust it

Work or school PC

Contact your administrator

For most home users, Windows Defender quarantine recovery should begin with Protection History. Data recovery software becomes relevant only after Defender can no longer restore the original file.

What Happens When Windows Defender Quarantines a File?

Understanding quarantine is important before attempting recovery.

When Microsoft Defender identifies a suspicious file, it may isolate that file so Windows applications can no longer run or normally access it. This process protects the system while keeping Defender in control of the item.

A quarantined file is therefore different from a permanently deleted file.

「隔離」と「削除」と「消去」の違い

A quarantined file still exists under Microsoft Defender’s control. If Defender still retains it, you can usually restore it.

A removed file has already been deleted by Defender. In this situation, the Restore option may no longer be available.

A file can also disappear because of manual deletion, another antivirus program, disk errors, or unrelated storage problems.

This distinction matters when learning how to recover quarantined files from Windows Defender. Recovery software does not need to be your first step when Defender still has the file.

Microsoft currently instructs Windows users to open Virus & threat protection → Protection history, filter for quarantined items, and select Restore when appropriate. Microsoft also provides MpCmdRun as an official command-line recovery method.

Method 1: Restore Quarantined Files from Windows Defender

最も簡単な方法 restore quarantined files in Windows Defender is through the Windows Security interface.

Restore Quarantined Files from Windows Defender

手順 1: Windows セキュリティを開く

プレス ウィンドウズ+S, タイプ:

Windowsセキュリティ

Open the matching result.

Then select:

ウイルスと脅威からの保護

ステップ 2: 保護履歴を開く

Under Virus & threat protection, select:

保護履歴

Windows displays recent actions taken by Microsoft Defender.

If many records appear, use the filter and choose:

Quarantined Items

Step 3: Find the Correct Detection

Open the detection associated with your missing file.

Before restoring it, check:

  • The original file location
  • Threat or detection name
  • ファイル名
  • Download source
  • Publisher or digital signature, when available

For example, suppose Defender quarantines an installer you downloaded directly from a software developer’s official website. If the filename, digital signature, and publisher all match what you expected, a false positive is more plausible.

However, an unfamiliar executable from an email attachment or unknown download site should stay quarantined.

ステップ4:「復元」を選択する

Expand the detection and select:

Actions → Restore

Defender should return the file if the quarantined copy still exists.

Microsoft notes that restoring a quarantined threat can cause Defender to detect the same file again. If you are certain the detection is a false positive, review the new alert and use デバイス上で許可する rather than broadly disabling your antivirus protection.

検索を行うほとんどのユーザーにとって how to recover quarantined files from Windows Defender, this is the safest and fastest solution.

Method 2: Recover Defender Quarantined Files with MpCmdRun

Sometimes the file does not appear properly in Windows のセキュリティ保護履歴, or the graphical interface does not provide the restore option you expect.

Microsoft provides another method called MpCmdRun, a command-line utility included with Microsoft Defender Antivirus.

ステップ1:管理者としてコマンドプロンプトを開く

プレス ウィンドウズ+S, enter:

コマンド

右クリック コマンドプロンプト, then choose:

管理者として実行する

Administrator privileges matter because Defender restricts access to quarantined data.

Step 2: Locate MpCmdRun

On many Windows installations, Defender’s command-line utility is located under:

C:\ProgramData\Microsoft\Windows Defender\Platform\<version>\

Microsoft’s documentation recommends using the latest Defender platform folder. If that location is unavailable, Windows may also use:

C:\Program Files\Windows Defender

Step 3: List Quarantined Files

Once Command Prompt is operating from the correct Defender directory, run:

MpCmdRun.exe -Restore -ListAll

This command lists items Defender still retains in quarantine.

Microsoft currently documents this exact MpCmdRun restore workflow for Microsoft Defender Antivirus.

Step 4: Restore the Required File

After identifying the item, run:

MpCmdRun.exe -Restore -Name

Replace <filename> with the filename shown in the previous result.

If MpCmdRun can still see the item, this method may succeed even when the normal interface is inconvenient.

However, if the item no longer exists in the quarantine list, repeatedly running Defender commands will not restore deleted storage data. At that point, move to the next method.

Method 3: Recover Files Deleted by Windows Defender with Magic Data Recovery

There is an important point that many recovery guides blur:

Restoring quarantine is not the same as recovering deleted files.

When Defender still owns the quarantine copy, use Windows Security or MpCmdRun. But if Defender has already removed the file and no usable quarantine copy remains, how to recover quarantined files from Windows Defender becomes a conventional deleted-data recovery problem.

そこで Magic Data Recovery が関係してくる。.

Magic Data Recovery scans the original storage device rather than depending on Defender’s quarantine database. It supports files lost through accidental deletion, formatting, file-system errors, and other data-loss situations.

It can also work with HDDs, SSDs, USB drives, SD cards, external storage, and common Windows file systems, while supporting more than 5,000 file types.

Magic Data Recoveryはいつ使うべきか?

次のような場合に検討してください:

  • Defender has already removed the original file.
  • Windows Defender quarantined files no longer appear in Protection History.
  • MpCmdRun cannot list the required item.
  • 利用可能なバックアップがありません。.
  • The file cannot simply be downloaded again.
  • You need to search the original disk for deleted file data.

Unlike Defender’s Restore feature, Magic Data Recovery does not require an active quarantine record.

Step 1: Stop Writing New Data to the Drive

If the file has truly been deleted, avoid unnecessary downloads, installations, file copies, and large Windows updates on the affected drive.

Deleted storage space may eventually be reused by new data.

If the missing file came from another partition, USB drive, or external disk, install the recovery software somewhere else whenever possible.

Step 2: Scan the Original Storage Location

Launch Magic Data Recovery and select the partition or storage device where the missing file originally existed.

Recover Files Deleted by Windows Defender with Magic Data Recovery

例えば、こうだ:

  • File disappeared from Desktop → usually scan the Windows system partition.
  • File was quarantined from an external HDD → scan that external HDD.
  • File was removed from a USB drive → scan the USB device.

Start the scan and allow the software to search for deleted and lost files.

Step 3: Filter and Preview Results

When many files appear, narrow the results by:

  • ファイル名
  • Path
  • ファイルの種類
  • Extension
  • ファイルサイズ

Preview supported files when possible before recovery.

Filter and Preview Results

This step is especially useful if the original file name or directory structure has been partially lost.

Step 4: Recover the File to Another Location

Select the required file and save it to a different drive or partition.

Recover the File to Another Location

Do not immediately write recovered data back to the same affected storage location. Doing so may overwrite other recoverable information.

Also keep expectations realistic. No deleted-file recovery application can guarantee that every file will remain recoverable. Continued disk usage, overwriting, storage condition, and SSD TRIM behavior can all affect results.

That distinction makes Magic Data Recovery a practical fallback rather than an unnecessary replacement for Microsoft’s built-in restoration tools.

Method 4: Restore the File from a Backup or Original Source

Before performing a deep recovery scan, check whether you already have another clean copy.

考えられる場所としては、次のようなものがあります:

  • ワンドライブ
  • ファイル履歴
  • 外付けバックアップドライブ
  • 別のカードリーダー
  • クラウドストレージ
  • 電子メールの添付ファイル
  • Project repositories
  • Organization backups

If Defender removed a program installer, DLL, archive, or application component that originally came from a legitimate developer, downloading the newest version from the official developer may be safer than restoring an older copy.

This is particularly true for executable files.

A clean replacement often provides a better solution than trying to recover files deleted by Windows Defender from old storage sectors.

Why Can't I Find the Restore Option in Windows Defender?

Users frequently open Protection History only to discover that リストア が欠けている。.

Several explanations are possible.

Defender Already Removed the File

If Defender reports the item as removed rather than quarantined, there may be no quarantine copy to restore.

Try MpCmdRun. If it cannot find the item either, check backups or scan the original storage device.

保護履歴にそのイベントが表示されなくなりました

Microsoft states that Protection History keeps events for approximately two weeks. Older records can therefore disappear from the visible history.

This does not necessarily mean that every underlying quarantine item is deleted at exactly the same time. Therefore, MpCmdRun is still worth checking.

You Do Not Have Administrator Rights

Protection History details and certain Defender operations require administrator permission.

If you use a standard Windows account, sign in with an administrator account or ask the device owner for help.

Your Organization Controls Microsoft Defender

Business and school computers may use centrally managed Defender policies.

If your IT department manages quarantine, exclusions, or security policies, do not attempt to bypass those controls. Contact the administrator instead.

What If Defender Quarantines the File Again?

A restored file may immediately trigger another detection.

Do not solve this by permanently disabling Microsoft Defender.

その代わりだ:

  1. Confirm where the file came from.
  2. Check the developer or publisher.
  3. Inspect its digital signature when available.
  4. Confirm that the filename and version match the expected software.
  5. Update Microsoft Defender definitions.
  6. If you are confident it is a false positive, review the new detection.
  7. 選ぶ デバイス上で許可する where appropriate.

Microsoft explicitly warns that allowing a genuinely malicious file may expose your computer and data to risk.

Should You Add a Windows Defender Exclusion?

An exclusion prevents Defender from scanning a specified file, folder, file type, or process.

That can help with a repeatedly misidentified trusted application, but exclusions should remain as narrow as possible.

For example, excluding one verified application file creates less exposure than excluding:

C:\ or an entire Downloads folder.

Never add an exclusion simply because software instructs you to disable antivirus protection without explaining why.

If you suspect a false positive, contacting the software developer or reporting the detection to Microsoft is also a safer long-term approach.

Best Practices Before Restoring Defender Quarantined Files

学ぶとき how to recover quarantined files from Windows Defender, protecting the PC matters as much as getting the file back.

Keep these rules in mind:

  • Restore only files whose origin you understand.
  • Prefer Microsoft’s built-in Restore option first.
  • Use MpCmdRun when the GUI cannot restore an existing quarantine item.
  • Do not permanently disable Defender for one file.
  • Keep Windows and Defender definitions updated.
  • Maintain backups of important work.
  • If the file was actually deleted, minimize writes to its original drive.
  • 復元したデータを別の場所に保存してください。.
  • On managed PCs, contact IT rather than bypassing security controls.

This order keeps the recovery process both practical and secure.

まとめ

に対する最良の答え how to recover quarantined files from Windows Defender depends on whether the file is still quarantined or has already been removed.

If Defender still holds the file, start with Windows Security → Virus & threat protection → Protection history → Quarantined Items → Restore. If the graphical interface does not work, Microsoft’s MpCmdRun utility provides another official way to restore quarantine items.

If the file has genuinely disappeared from Defender, check backups or download a fresh trusted copy first. When neither option is available, Magic Data Recovery is worth trying because it scans the storage device itself for deleted data rather than relying on Defender’s quarantine database.

Its support for deleted files, formatted drives, file-system errors, multiple storage devices, preview, filtering, and thousands of file formats makes it useful when ordinary Windows Defender quarantine recovery has reached its limit.

For more information about files that have been permanently removed, see Amagicsoft’s 削除ファイル復元 を案内する。.

Most importantly, never restore a suspicious file solely because it is important. Verify the file first, then choose the recovery method that matches its actual status.

Windows 7/8/10/11およびWindows Serverをサポート

よくあるご質問

How do I recover quarantined files from Windows Defender?

Open Windows Security and go to Virus & threat protection → Protection history. Filter the list by Quarantined Items, select the file, and choose Restore. Only restore it after confirming that the file came from a trusted source and Defender likely produced a false positive.

Where are Windows Defender quarantined files stored?

Microsoft Defender keeps quarantined items in protected system storage rather than a normal user-accessible folder. You generally should not modify this location manually. Use Protection History or Microsoft's MpCmdRun utility to view and restore quarantined files from Windows Defender safely.

Can I recover a file after Windows Defender deletes it?

Possibly. First check Protection History, MpCmdRun, backups, OneDrive, and the original download source. If Defender has permanently removed the file and no backup exists, a data recovery tool such as Magic Data Recovery can scan the original storage device for recoverable deleted data.

Why is there no Restore button in Windows Defender?

The item may have already been removed, the Protection History entry may have expired, or your account may lack administrator permission. Try MpCmdRun.exe -Restore -ListAll. If Defender no longer retains the file, check backups or consider deleted-file recovery instead.

Will Windows Defender quarantine a restored file again?

Yes. Defender may detect the restored file again if its security definitions still classify it as a threat. Verify the source, publisher, and digital signature first. If you are confident the detection is false, review the new alert and choose Allow on device.

Can Magic Data Recovery restore files directly from Defender quarantine?

Not in the same way as Windows Security. If the file still exists in Defender quarantine, use Restore or MpCmdRun first. Magic Data Recovery is more useful after the original file has been deleted and Defender no longer provides a recoverable quarantine copy.

Does Windows Defender quarantine delete files permanently?

Not necessarily. Quarantine normally isolates a detected item instead of immediately erasing it, which allows Defender to offer a Restore option. However, an item may later be removed or become unavailable through normal quarantine recovery, so its current status should be checked before choosing a recovery method.

Should I disable Windows Defender before recovering a file?

Usually no. Permanently disabling Defender weakens your security and is unnecessary for most recovery cases. Restore the item first, verify that it is safe, and use Allow on device or a narrowly scoped exclusion only when you have strong evidence that the detection is a false positive.

ジェイソンは、コンピューター・データ・セキュリティ業界で15年以上の実務経験があります。データ復旧、バックアップと復元、ファイル修復技術を専門とし、世界中の何百万人ものユーザーが複雑なデータ損失やセキュリティ問題を解決できるよう支援してきました。.