Default risk level for file attachments: registry value DefaultFileTypeRiskUserHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations
- Policy ID
- AM_SetFileRiskLevel
- Scope
- User Configuration
- Supported on
- At least Windows XP Professional with SP2
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Attachment Manager
Registry
DefaultFileTypeRisk
REG_DWORDUser- Enabled value
- Depends on the option value
- Element
- Set the default risk level
| Item | Stored value |
|---|---|
| High Risk | 6150 |
| Moderate Risk | 6151 |
| Low Risk | 6152 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations] ; Options (use only one) ; High Risk "DefaultFileTypeRisk"=dword:00001806 ; Moderate Risk "DefaultFileTypeRisk"=dword:00001807 ; Low Risk "DefaultFileTypeRisk"=dword:00001808
CMD
:: Options (use only one) :: High Risk reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "DefaultFileTypeRisk" /t REG_DWORD /d 6150 /f :: Moderate Risk reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "DefaultFileTypeRisk" /t REG_DWORD /d 6151 /f :: Low Risk reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "DefaultFileTypeRisk" /t REG_DWORD /d 6152 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Force | Out-Null # Options (use only one) # High Risk New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'DefaultFileTypeRisk' -PropertyType DWord -Value 6150 -Force | Out-Null # Moderate Risk New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'DefaultFileTypeRisk' -PropertyType DWord -Value 6151 -Force | Out-Null # Low Risk New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations' -Name 'DefaultFileTypeRisk' -PropertyType DWord -Value 6152 -Force | Out-Null