Configura risoluzione dei nomi crittografati: valore del Registro di sistema DoHPolicy e altri 2ComputerHKLM\Software\Policies\Microsoft\Windows NT\DNSClient

ID criterio
DNS_Doh
Ambito
Configurazione computer
Supportato in
Almeno Windows Server 20H2, Windows 10 versione 20H2
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Rete › Client DNS

Registro

DoHPolicy

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Configurare le opzioni di crittografia:
Opzioni
VoceValore memorizzato
Richiedi crittografia3
Consenti crittografia2
Proibisci crittografia1
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient]

; Opzioni (usarne solo una)
; Richiedi crittografia
"DoHPolicy"=dword:00000003
; Consenti crittografia
"DoHPolicy"=dword:00000002
; Proibisci crittografia
"DoHPolicy"=dword:00000001
CMD
:: Opzioni (usarne solo una)

:: Richiedi crittografia
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "DoHPolicy" /t REG_DWORD /d 3 /f
:: Consenti crittografia
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "DoHPolicy" /t REG_DWORD /d 2 /f
:: Proibisci crittografia
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "DoHPolicy" /t REG_DWORD /d 1 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Force | Out-Null

# Opzioni (usarne solo una)
# Richiedi crittografia
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'DoHPolicy' -PropertyType DWord -Value 3 -Force | Out-Null
# Consenti crittografia
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'DoHPolicy' -PropertyType DWord -Value 2 -Force | Out-Null
# Proibisci crittografia
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'DoHPolicy' -PropertyType DWord -Value 1 -Force | Out-Null

DohPolicySetting

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Configurare le opzioni specifiche di DoH:
Opzioni
VoceValore memorizzato
Consenti DoH0
Blocca DoH1
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient]

; Opzioni (usarne solo una)
; Consenti DoH
"DohPolicySetting"=dword:00000000
; Blocca DoH
"DohPolicySetting"=dword:00000001
CMD
:: Opzioni (usarne solo una)

:: Consenti DoH
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "DohPolicySetting" /t REG_DWORD /d 0 /f
:: Blocca DoH
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "DohPolicySetting" /t REG_DWORD /d 1 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Force | Out-Null

# Opzioni (usarne solo una)
# Consenti DoH
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'DohPolicySetting' -PropertyType DWord -Value 0 -Force | Out-Null
# Blocca DoH
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'DohPolicySetting' -PropertyType DWord -Value 1 -Force | Out-Null

DotPolicySetting

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Configurare le opzioni specifiche di DoT:
Opzioni
VoceValore memorizzato
Consenti DoT0
Blocca DoT1
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient]

; Opzioni (usarne solo una)
; Consenti DoT
"DotPolicySetting"=dword:00000000
; Blocca DoT
"DotPolicySetting"=dword:00000001
CMD
:: Opzioni (usarne solo una)

:: Consenti DoT
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "DotPolicySetting" /t REG_DWORD /d 0 /f
:: Blocca DoT
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "DotPolicySetting" /t REG_DWORD /d 1 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Force | Out-Null

# Opzioni (usarne solo una)
# Consenti DoT
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'DotPolicySetting' -PropertyType DWord -Value 0 -Force | Out-Null
# Blocca DoT
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'DotPolicySetting' -PropertyType DWord -Value 1 -Force | Out-Null