Dosya ekleri için güven mantığı: kayıt defteri değeri UseTrustedHandlersKullanıcıHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments

İlke Kimliği
AM_EstimateFileHandlerRisk
Kapsam
Kullanıcı Yapılandırması
Desteklenen işletim sistemleri
En az Windows XP Professional SP2
Kaynak
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (sürüm 1.0)
Kategori
Windows Bileşenleri › Ek Yöneticisi

Kayıt defteri

UseTrustedHandlers

REG_DWORDKullanıcı
Etkin değeri
Seçenek değerine bağlıdır
Öğe
Riski bununla belirle
Seçenekler
MaddeSaklanan değer
Dosya işleyici tercih ediliyor2
Dosya işleyiciye ve türüne bakılıyor3
Dosya türü tercih ediliyor1
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments]

; Seçenekler (yalnızca birini kullanın)
; Dosya işleyici tercih ediliyor
"UseTrustedHandlers"=dword:00000002
; Dosya işleyiciye ve türüne bakılıyor
"UseTrustedHandlers"=dword:00000003
; Dosya türü tercih ediliyor
"UseTrustedHandlers"=dword:00000001
CMD
:: Seçenekler (yalnızca birini kullanın)

:: Dosya işleyici tercih ediliyor
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 2 /f
:: Dosya işleyiciye ve türüne bakılıyor
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 3 /f
:: Dosya türü tercih ediliyor
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "UseTrustedHandlers" /t REG_DWORD /d 1 /f
PowerShell
# Ortak: anahtarı oluştur
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Force | Out-Null

# Seçenekler (yalnızca birini kullanın)
# Dosya işleyici tercih ediliyor
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 2 -Force | Out-Null
# Dosya işleyiciye ve türüne bakılıyor
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 3 -Force | Out-Null
# Dosya türü tercih ediliyor
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments' -Name 'UseTrustedHandlers' -PropertyType DWord -Value 1 -Force | Out-Null