IDN mapping
Mappage IDN
Explanation
Specifies whether the DNS client should convert internationalized domain names (IDNs) to the Nameprep form, a canonical Unicode representation of the string.
If this policy setting is enabled, IDNs are converted to the Nameprep form.
If this policy setting is disabled, or if this policy setting is not configured, IDNs are not converted to the Nameprep form.
Spécifie si le client DNS doit convertir les noms de domaine internationaux (IDN) au format Nameprep, qui est une représentation Unicode canonique de la chaîne.
Si vous activez ce paramètre de stratégie, les noms IDN sont convertis au format Nameprep.
Si vous activez ce paramètre de stratégie, les noms IDN ne sont pas convertis au format Nameprep.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient- Value name
EnableIdnMapping
| 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_IdnMapping
$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 'EnableIdnMapping' -Value 1 -Type DWordDisable
# Disable: DnsClient/DNS_IdnMapping
$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 'EnableIdnMapping' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": DnsClient/DNS_IdnMapping
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient'
Remove-ItemProperty -Path $k -Name 'EnableIdnMapping' -ErrorAction SilentlyContinue