Policy
Trust logic for file attachments
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows10, Windows10RT, Windows11, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016, WindowsVista, WindowsXP
This policy setting allows you to configure the logic that Windows uses to determine the risk for file attachments. Preferring the file handler instructs Windows to use the file handler data over the file type data. For example, trust notepad.exe, but don't trust .txt files. Preferring the file type instructs Windows to use the file type data over the file handler data. For example, trust .txt files, regardless of the file handler. Using both the file handler and type data is the most restrictive option. Windows chooses the more restrictive recommendation which will cause users to see more trust prompts than choosing the other options. If you enable this policy setting, you can choose the order in which Windows processes risk assessment data. If you disable this policy setting, Windows uses its default trust logic, which prefers the file handler over the file type. If you do not configure this policy setting, Windows uses its default trust logic, which prefers the file handler over the file type.
Registry values
How enabled and disabled states update the registry.
No explicit registry values are set for enabled or disabled states.
Policy elements
Inputs and configuration options exposed by this policy.
| Element | Type | Registry mapping | Constraints & behavior |
|---|---|---|---|
Determine risk by ID AM_TrustLogicSetting | enum | HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments\UseTrustedHandlers Type REG_DWORD | Options: Preferring the file handler (2), Looking at the file handler and type (3), Preferring the file type (1) |
Other policies in this category
Explore related policies at the same level.
- UserDefault risk level for file attachmentsAt least Windows XP Professional with SP2
- UserDo not preserve zone information in file attachmentsAt least Windows XP Professional with SP2
- UserHide mechanisms to remove zone informationAt least Windows XP Professional with SP2
- UserInclusion list for high risk file typesAt least Windows XP Professional with SP2
- UserInclusion list for low file typesAt least Windows XP Professional with SP2
- UserInclusion list for moderate risk file typesAt least Windows XP Professional with SP2
- UserNotify antivirus programs when opening attachmentsAt least Windows XP Professional with SP2