添付ファイルの信頼ロジック のレジストリ値 UseTrustedHandlersユーザーHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments
- ポリシー ID
- AM_EstimateFileHandlerRisk
- 適用対象
- ユーザーの構成
- サポートされるバージョン
- Windows XP Professional SP2 以降
- 出典
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
- カテゴリ
- Windows コンポーネント › 添付ファイル マネージャー
レジストリ
UseTrustedHandlers
REG_DWORDユーザー- 有効時の値
- オプションの値に依存
- 要素
- 危険の判定方法
| 項目 | 保存される値 |
|---|---|
| ファイル ハンドラーを優先 | 2 |
| ファイル ハンドラーと種類を参照 | 3 |
| ファイルの種類を優先 | 1 |
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments] ; 選択項目 (1 つだけ使用) ; ファイル ハンドラーを優先 "UseTrustedHandlers"=dword:00000002 ; ファイル ハンドラーと種類を参照 "UseTrustedHandlers"=dword:00000003 ; ファイルの種類を優先 "UseTrustedHandlers"=dword:00000001
CMD
:: 選択項目 (1 つだけ使用) :: ファイル ハンドラーを優先 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 2 /f :: ファイル ハンドラーと種類を参照 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 3 /f :: ファイルの種類を優先 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 1 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Force | Out-Null # 選択項目 (1 つだけ使用) # ファイル ハンドラーを優先 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 2 -Force | Out-Null # ファイル ハンドラーと種類を参照 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 3 -Force | Out-Null # ファイルの種類を優先 New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 1 -Force | Out-Null