Logika zaufania dla plików załączników: wartość rejestru UseTrustedHandlersUżytkownikHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments
- Identyfikator zasady
- AM_EstimateFileHandlerRisk
- Zakres
- Konfiguracja użytkownika
- Obsługiwane w systemach
- System Windows XP Professional z dodatkiem SP2 lub nowszy
- Źródło
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
- Kategoria
- Składniki systemu Windows › Menedżer załączników
Rejestr
UseTrustedHandlers
REG_DWORDUżytkownik- Wartość włączona
- Zależy od wartości opcji
- Element
- Określ ryzyko według
| Pozycja | Zapisana wartość |
|---|---|
| Preferowanie obsługi plików | 2 |
| Sprawdzanie obsługi i typu pliku | 3 |
| Preferowanie typu pliku | 1 |
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments] ; Opcje (użyj tylko jednej) ; Preferowanie obsługi plików "UseTrustedHandlers"=dword:00000002 ; Sprawdzanie obsługi i typu pliku "UseTrustedHandlers"=dword:00000003 ; Preferowanie typu pliku "UseTrustedHandlers"=dword:00000001
CMD
:: Opcje (użyj tylko jednej) :: Preferowanie obsługi plików reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 2 /f :: Sprawdzanie obsługi i typu pliku reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 3 /f :: Preferowanie typu pliku reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 1 /f
PowerShell
# Wspólne: utwórz klucz New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Force | Out-Null # Opcje (użyj tylko jednej) # Preferowanie obsługi plików New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 2 -Force | Out-Null # Sprawdzanie obsługi i typu pliku New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 3 -Force | Out-Null # Preferowanie typu pliku New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 1 -Force | Out-Null