List Windows Defender Quarantined Files (MpCmdRun)

Show every file Defender has quarantined from the command line, without opening the Security app.

WindowscmddefendersecurityLow risk
Run & "$env:ProgramFiles\Windows Defender\MpCmdRun.exe" -Restore -ListAll to list all quarantined items.

01Command

Command
$ & "$env:ProgramFiles\Windows Defender\MpCmdRun.exe" -Restore -ListAll

02What it does

When Defender detects a threat it moves the file into quarantine rather than deleting it, and this MpCmdRun switch lists everything currently held there. Each entry shows the original path and threat name so you can judge whether a detection was a false positive. The same tool can put items back with -Restore -All, or you can review them in the Windows Security app's protection history.

03Risk

RiskLow risk
!Warning: Restoring a quarantined item puts real malware back on disk — only restore files you are certain are false positives.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-18 · Category: Security & Privacy

06Related solutions