Inscrire des enregistrements DNS avec un suffixe DNS spécifique à la connexion : valeur de Registre RegisterAdapterNameOrdinateurHKLM\Software\Policies\Microsoft\Windows NT\DNSClient

ID de stratégie
DNS_RegisterAdapterName
Étendue
Configuration ordinateur
Pris en charge sur
Au minimum Windows Server 2003 ou Windows XP Professionnel
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Réseau › Client DNS

Registre

RegisterAdapterName

REG_DWORDOrdinateur
Valeur si activée
1
Valeur si désactivée
0
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Options (en utiliser une seule)
; Activé
"RegisterAdapterName"=dword:00000001
; Désactivé
"RegisterAdapterName"=dword:00000000
CMD
:: Options (en utiliser une seule)

:: Activé
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "RegisterAdapterName" /t REG_DWORD /d 1 /f
:: Désactivé
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "RegisterAdapterName" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Force | Out-Null

# Options (en utiliser une seule)
# Activé
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'RegisterAdapterName' -PropertyType DWord -Value 1 -Force | Out-Null
# Désactivé
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'RegisterAdapterName' -PropertyType DWord -Value 0 -Force | Out-Null