添付ファイルの既定の危険レベル のレジストリ値 DefaultFileTypeRiskユーザーHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations

ポリシー ID
AM_SetFileRiskLevel
適用対象
ユーザーの構成
サポートされるバージョン
Windows XP Professional SP2 以降
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
Windows コンポーネント › 添付ファイル マネージャー

レジストリ

DefaultFileTypeRisk

REG_DWORDユーザー
有効時の値
オプションの値に依存
要素
既定の危険レベル
オプション
項目保存される値
危険度 - 高6150
危険度 - 中6151
危険度 - 低6152
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]

; 選択項目 (1 つだけ使用)
; 危険度 - 高
"DefaultFileTypeRisk"=dword:00001806
; 危険度 - 中
"DefaultFileTypeRisk"=dword:00001807
; 危険度 - 低
"DefaultFileTypeRisk"=dword:00001808
CMD
:: 選択項目 (1 つだけ使用)

:: 危険度 - 高
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "DefaultFileTypeRisk" /t REG_DWORD /d 6150 /f
:: 危険度 - 中
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "DefaultFileTypeRisk" /t REG_DWORD /d 6151 /f
:: 危険度 - 低
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "DefaultFileTypeRisk" /t REG_DWORD /d 6152 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# 危険度 - 高
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'DefaultFileTypeRisk' -PropertyType DWord -Value 6150 -Force | Out-Null
# 危険度 - 中
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'DefaultFileTypeRisk' -PropertyType DWord -Value 6151 -Force | Out-Null
# 危険度 - 低
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'DefaultFileTypeRisk' -PropertyType DWord -Value 6152 -Force | Out-Null