傳送國際化的網域名稱 的登錄值 EnablePunyCode使用者HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings

原則 ID
ControlPanel_SendIDNNames
適用範圍
電腦設定、使用者設定
支援的作業系統
至少 Internet Explorer 7.0
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
Windows 元件 › Internet Explorer › 網際網路控制台

登錄

EnablePunyCode

REG_DWORD使用者電腦
啟用時的值
取決於選項值
元素
選擇想要的行為
選項
項目儲存的值
永不轉換成 IDN 格式0
將非內部網路位址轉換成 IDN 格式1
將內部網路位址轉換成 IDN 格式2
自動轉換成 IDN 格式3
以 .reg · CMD · PowerShell 套用
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings]

; 選項 (只使用其中一個)
; 永不轉換成 IDN 格式
"EnablePunyCode"=dword:00000000
; 將非內部網路位址轉換成 IDN 格式
"EnablePunyCode"=dword:00000001
; 將內部網路位址轉換成 IDN 格式
"EnablePunyCode"=dword:00000002
; 自動轉換成 IDN 格式
"EnablePunyCode"=dword:00000003
CMD
:: 選項 (只使用其中一個)

:: 永不轉換成 IDN 格式
reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnablePunyCode" /t REG_DWORD /d 0 /f
:: 將非內部網路位址轉換成 IDN 格式
reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnablePunyCode" /t REG_DWORD /d 1 /f
:: 將內部網路位址轉換成 IDN 格式
reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnablePunyCode" /t REG_DWORD /d 2 /f
:: 自動轉換成 IDN 格式
reg add "HKCU\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnablePunyCode" /t REG_DWORD /d 3 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings' -Force | Out-Null

# 選項 (只使用其中一個)
# 永不轉換成 IDN 格式
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings' -Name 'EnablePunyCode' -PropertyType DWord -Value 0 -Force | Out-Null
# 將非內部網路位址轉換成 IDN 格式
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings' -Name 'EnablePunyCode' -PropertyType DWord -Value 1 -Force | Out-Null
# 將內部網路位址轉換成 IDN 格式
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings' -Name 'EnablePunyCode' -PropertyType DWord -Value 2 -Force | Out-Null
# 自動轉換成 IDN 格式
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings' -Name 'EnablePunyCode' -PropertyType DWord -Value 3 -Force | Out-Null
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings]

; 選項 (只使用其中一個)
; 永不轉換成 IDN 格式
"EnablePunyCode"=dword:00000000
; 將非內部網路位址轉換成 IDN 格式
"EnablePunyCode"=dword:00000001
; 將內部網路位址轉換成 IDN 格式
"EnablePunyCode"=dword:00000002
; 自動轉換成 IDN 格式
"EnablePunyCode"=dword:00000003
CMD
:: 選項 (只使用其中一個)

:: 永不轉換成 IDN 格式
reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnablePunyCode" /t REG_DWORD /d 0 /f
:: 將非內部網路位址轉換成 IDN 格式
reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnablePunyCode" /t REG_DWORD /d 1 /f
:: 將內部網路位址轉換成 IDN 格式
reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnablePunyCode" /t REG_DWORD /d 2 /f
:: 自動轉換成 IDN 格式
reg add "HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings" /v "EnablePunyCode" /t REG_DWORD /d 3 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings' -Force | Out-Null

# 選項 (只使用其中一個)
# 永不轉換成 IDN 格式
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings' -Name 'EnablePunyCode' -PropertyType DWord -Value 0 -Force | Out-Null
# 將非內部網路位址轉換成 IDN 格式
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings' -Name 'EnablePunyCode' -PropertyType DWord -Value 1 -Force | Out-Null
# 將內部網路位址轉換成 IDN 格式
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings' -Name 'EnablePunyCode' -PropertyType DWord -Value 2 -Force | Out-Null
# 自動轉換成 IDN 格式
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings' -Name 'EnablePunyCode' -PropertyType DWord -Value 3 -Force | Out-Null