Use this when restoring or removing quarantined items.
Quarantine
Defender quarantine isolates detected files so they cannot run, allowing review, restore or permanent removal. Manage it in Windows Security protection history or with MpCmdRun -Restore.
1. Get-MpThreat / Protection history.
2. Restore only if confirmed false positive.
3. Remove: Remove-MpThreat.
4. Submit false positives to Microsoft.
5. Investigate source of real threats.
detection → quarantine → restore or remove
Context & applicabilityCommon mistakes · platform/version boundaries
- Restoring quarantined files because "the user needs them" without analysis.
- Not checking where the file came from (download, email, USB).
- Ignoring repeated detections of the same threat (persistence still present).
Operational reference
Fast context before you go deeper.
Get-MpThreatEvidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Quarantine isolates files; it does not delete them immediately.
- Restore only confirmed false positives.
- Actions are logged.
Get-MpComputerStatus— Defender state and signature ageGet-MpPreference— configuration incl. exclusionsGet-MpThreat / Get-MpThreatDetection— threats and detectionsUpdate-MpSignature— update signaturesStart-MpScan -ScanType QuickScan— run a scan
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Quarantine stores detected files encrypted so they cannot run.
Get-MpThreat
Get-MpThreatDetection | Select ThreatID,ActionSuccess,Resources
& "$env:ProgramFiles\Windows Defender\MpCmdRun.exe" -Restore -ListAll
& "$env:ProgramFiles\Windows Defender\MpCmdRun.exe" -Restore -Name 'Trojan:Win32/Example'
Remove-MpThreat
Restore only after confirming a false positive (submit to Microsoft), and add an indicator/allow rule centrally instead of a broad exclusion.
ReferenceConfiguration & state1 section · depth on demand
Commands
Get-MpThreat
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Restore -ListAll
"%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Restore -Name "<threat name>"
Documented example, not captured output. Restore only after confirming a false positive, and submit the file to Microsoft. Quarantined items are encrypted under C:\ProgramData\Microsoft\Windows Defender\Quarantine.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Microsoft Defender → Quarantine. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/defender/ · confidence 94%