高度風險檔案類型的包含清單 的登錄值 HighRiskFileTypes使用者HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations
- 原則 ID
- AM_SetHighRiskInclusion
- 適用範圍
- 使用者設定
- 支援的作業系統
- 至少需要 Windows XP Professional SP2
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- Windows 元件 › 附件管理員
登錄
HighRiskFileTypes
REG_SZ使用者- 啟用時的值
- 取決於選項值
- 元素
- 指定高度風險副檔名 (包含前置句點,例如 .cmd;.exe;)。
- 值類型
- REG_SZ
- 必要
- true
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> "HighRiskFileTypes"="<輸入值>"
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "HighRiskFileTypes" /t REG_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'HighRiskFileTypes' -PropertyType String -Value '<輸入值>' -Force | Out-Null