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