Lógica de confiança para anexos de arquivo: valor do Registro UseTrustedHandlersUsuárioHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments
- ID da política
- AM_EstimateFileHandlerRisk
- Escopo
- Configuração do Usuário
- Compatível com
- Windows XP Professional com SP2 ou posterior
- Fonte
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
- Categoria
- Componentes do Windows › Gerenciador de Anexos
Registro
UseTrustedHandlers
REG_DWORDUsuário- Valor habilitado
- Depende do valor da opção
- Elemento
- Determinar o risco por
| Item | Valor armazenado |
|---|---|
| Preferência ao manipulador de arquivo | 2 |
| Consultando manipulador e tipo de arquivo | 3 |
| Preferência ao tipo de arquivo | 1 |
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments] ; Opções (use apenas uma) ; Preferência ao manipulador de arquivo "UseTrustedHandlers"=dword:00000002 ; Consultando manipulador e tipo de arquivo "UseTrustedHandlers"=dword:00000003 ; Preferência ao tipo de arquivo "UseTrustedHandlers"=dword:00000001
CMD
:: Opções (use apenas uma) :: Preferência ao manipulador de arquivo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 2 /f :: Consultando manipulador e tipo de arquivo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 3 /f :: Preferência ao tipo de arquivo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 1 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Force | Out-Null # Opções (use apenas uma) # Preferência ao manipulador de arquivo New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 2 -Force | Out-Null # Consultando manipulador e tipo de arquivo New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 3 -Force | Out-Null # Preferência ao tipo de arquivo New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 1 -Force | Out-Null