Specify threats upon which default action should not be taken when detected: registry value Threats_ThreatIdDefaultAction (ThreatIdDefaultAction)ComputerHKLM\Software\Policies\Microsoft\Windows Defender\Threats\ThreatIdDefaultAction

Policy ID
Threats_ThreatIdDefaultAction
Scope
Computer Configuration
Supported on
At least Windows Server 2012, Windows 8 or Windows RT
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Microsoft Defender Antivirus › Threats

Registry

Threats_ThreatIdDefaultAction

-Computer

(list values)

REG_SZComputer
Enabled value
Depends on the option value
Element
Specify threats upon which default action should not be taken when detected
Value type
REG_SZ
Add to existing value
true
Explicit value name
true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Threats\ThreatIdDefaultAction]
"<enter name>"="<enter value>"
CMD
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Threats\ThreatIdDefaultAction" /v "<enter name>" /t REG_SZ /d "<enter value>" /f
PowerShell
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Threats\ThreatIdDefaultAction' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Threats\ThreatIdDefaultAction' -Name '<enter name>' -PropertyType String -Value '<enter value>' -Force | Out-Null