Turn off IDN encoding
Désactiver l’encodage IDN
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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