Open in the explorer

Turn off IDN encoding

Désactiver l’encodage IDN

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › DNS Client FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Client DNS
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
DnsClient.admx
Internal name
DnsClient/DNS_IdnEncoding

Explanation

Specifies whether the DNS client should convert internationalized domain names (IDNs) to Punycode when the DNS client is on non-domain networks with no WINS servers configured.

If this policy setting is enabled, IDNs are not converted to Punycode.

If this policy setting is disabled, or if this policy setting is not configured, IDNs are converted to Punycode when the DNS client is on non-domain networks with no WINS servers configured.

French text from Windows 11 26H2

Spécifie si le client DNS doit convertir les noms de domaine internationaux (IDN) en Punycode lorsque le client DNS se trouve sur des réseaux sans domaine sans serveur WINS configuré.

Si ce paramètre de stratégie est activé, les IDN ne sont pas convertis en Punycode.

Si ce paramètre de stratégie est désactivé ou si ce paramètre de stratégie n’est pas configuré, les IDN sont convertis en Punycode lorsque le client DNS se trouve sur des réseaux sans domaine sans serveur WINS configuré.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient
Value name
DisableIdnEncoding
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: DnsClient/DNS_IdnEncoding
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableIdnEncoding' -Value 1 -Type DWord

Disable

# Disable: DnsClient/DNS_IdnEncoding
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableIdnEncoding' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": DnsClient/DNS_IdnEncoding
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
Remove-ItemProperty -Path $k -Name 'DisableIdnEncoding' -ErrorAction SilentlyContinue

Availability