Contrôle le mode DNS-over-HTTPS : valeur de Registre DnsOverHttpsModeOrdinateurHKLM\Software\Policies\Google\Chrome
- ID de stratégie
- DnsOverHttpsMode
- Étendue
- Configuration ordinateur, configuration utilisateur
- Pris en charge sur
- Microsoft Windows 7 ou version ultérieure
- Source
- Google Chrome Policy Templates (version 156.0.8078.80)
- Catégorie
- Google › Google Chrome
Registre
DnsOverHttpsMode
REG_SZOrdinateurUtilisateur…\Software\Policies\Google\ChromeHKLM\Software\Policies\Google\Chrome Clé actuelle
HKCU\Software\Policies\Google\Chrome
HKCU\Software\Policies\Google\Chrome
- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Contrôle le mode DNS-over-HTTPS
| Entrée | Valeur stockée |
|---|---|
| Désactiver DNS-over-HTTPS | off |
| Activer DNS-over-HTTPS avec solution de secours à risque | automatic |
| Activer DNS-over-HTTPS sans solution de secours à risque | secure |
Appliquer avec .reg · CMD · PowerShell
OrdinateurParamètre valable pour tout l’ordinateur
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome] ; Options (en utiliser une seule) ; Désactiver DNS-over-HTTPS "DnsOverHttpsMode"="off" ; Activer DNS-over-HTTPS avec solution de secours à risque "DnsOverHttpsMode"="automatic" ; Activer DNS-over-HTTPS sans solution de secours à risque "DnsOverHttpsMode"="secure"
CMD
:: Options (en utiliser une seule) :: Désactiver DNS-over-HTTPS reg add "HKLM\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "off" /f :: Activer DNS-over-HTTPS avec solution de secours à risque reg add "HKLM\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "automatic" /f :: Activer DNS-over-HTTPS sans solution de secours à risque reg add "HKLM\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "secure" /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\Software\Policies\Google\Chrome' -Force | Out-Null # Options (en utiliser une seule) # Désactiver DNS-over-HTTPS New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'off' -Force | Out-Null # Activer DNS-over-HTTPS avec solution de secours à risque New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'automatic' -Force | Out-Null # Activer DNS-over-HTTPS sans solution de secours à risque New-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'secure' -Force | Out-Null
UtilisateurParamètre par compte
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Google\Chrome] ; Options (en utiliser une seule) ; Désactiver DNS-over-HTTPS "DnsOverHttpsMode"="off" ; Activer DNS-over-HTTPS avec solution de secours à risque "DnsOverHttpsMode"="automatic" ; Activer DNS-over-HTTPS sans solution de secours à risque "DnsOverHttpsMode"="secure"
CMD
:: Options (en utiliser une seule) :: Désactiver DNS-over-HTTPS reg add "HKCU\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "off" /f :: Activer DNS-over-HTTPS avec solution de secours à risque reg add "HKCU\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "automatic" /f :: Activer DNS-over-HTTPS sans solution de secours à risque reg add "HKCU\Software\Policies\Google\Chrome" /v "DnsOverHttpsMode" /t REG_SZ /d "secure" /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKCU:\Software\Policies\Google\Chrome' -Force | Out-Null # Options (en utiliser une seule) # Désactiver DNS-over-HTTPS New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'off' -Force | Out-Null # Activer DNS-over-HTTPS avec solution de secours à risque New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'automatic' -Force | Out-Null # Activer DNS-over-HTTPS sans solution de secours à risque New-ItemProperty -Path 'HKCU:\Software\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -PropertyType String -Value 'secure' -Force | Out-Null