設定 Teredo 狀態 的登錄值 Teredo_State電腦HKLM\Software\Policies\Microsoft\Windows\TCPIP\v6Transition
- 原則 ID
- Teredo_State
- 適用範圍
- 電腦設定
- 支援的作業系統
- 至少需要 Windows Server 2008 R2 或 Windows 7
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- 網路 › TCPIP 設定值 › IPv6 轉換技術
登錄
Teredo_State
REG_SZ電腦- 啟用時的值
- 取決於選項值
- 元素
- 從下列狀態中選取:
| 項目 | 儲存的值 |
|---|---|
| 預設狀態 | Default |
| 停用狀態 | Disabled |
| 用戶端 | Client |
| 企業版用戶端 | Enterprise Client |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\TCPIP\v6Transition] ; 選項 (只使用其中一個) ; 預設狀態 "Teredo_State"="Default" ; 停用狀態 "Teredo_State"="Disabled" ; 用戶端 "Teredo_State"="Client" ; 企業版用戶端 "Teredo_State"="Enterprise Client"
CMD
:: 選項 (只使用其中一個) :: 預設狀態 reg add "HKLM\Software\Policies\Microsoft\Windows\TCPIP\v6Transition" /v "Teredo_State" /t REG_SZ /d "Default" /f :: 停用狀態 reg add "HKLM\Software\Policies\Microsoft\Windows\TCPIP\v6Transition" /v "Teredo_State" /t REG_SZ /d "Disabled" /f :: 用戶端 reg add "HKLM\Software\Policies\Microsoft\Windows\TCPIP\v6Transition" /v "Teredo_State" /t REG_SZ /d "Client" /f :: 企業版用戶端 reg add "HKLM\Software\Policies\Microsoft\Windows\TCPIP\v6Transition" /v "Teredo_State" /t REG_SZ /d "Enterprise Client" /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\TCPIP\v6Transition' -Force | Out-Null # 選項 (只使用其中一個) # 預設狀態 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\TCPIP\v6Transition' -Name 'Teredo_State' -PropertyType String -Value 'Default' -Force | Out-Null # 停用狀態 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\TCPIP\v6Transition' -Name 'Teredo_State' -PropertyType String -Value 'Disabled' -Force | Out-Null # 用戶端 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\TCPIP\v6Transition' -Name 'Teredo_State' -PropertyType String -Value 'Client' -Force | Out-Null # 企業版用戶端 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\TCPIP\v6Transition' -Name 'Teredo_State' -PropertyType String -Value 'Enterprise Client' -Force | Out-Null