Spécifier le DNS global : valeur de Registre UseGlobalDnsOrdinateurHKLM\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator

ID de stratégie
NCSI_GlobalDns
Étendue
Configuration ordinateur
Pris en charge sur
Windows Server 2016, Windows 10 version 1709 ou versions supérieures
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Réseau › Indicateur d’état de la connectivité réseau

Registre

UseGlobalDns

REG_DWORDOrdinateur
Cochée
1
Décochée
0
Élément
Utiliser le DNS global
Type de valeur
REG_DWORD
Obligatoire
false
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator]

; Options (en utiliser une seule)
; Cochée
"UseGlobalDns"=dword:00000001
; Décochée
"UseGlobalDns"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Cochée
reg add "HKLM\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator" /v "UseGlobalDns" /t REG_DWORD /d 1 /f
:: Décochée
reg add "HKLM\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator" /v "UseGlobalDns" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator' -Force | Out-Null

# Options (en utiliser une seule)
# Cochée
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator' -Name 'UseGlobalDns' -PropertyType DWord -Value 1 -Force | Out-Null
# Décochée
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator' -Name 'UseGlobalDns' -PropertyType DWord -Value 0 -Force | Out-Null