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]

; 選択項目 (1 つだけ使用)
; 既定の状態
"6to4_State"="Default"
; 有効状態
"6to4_State"="Enabled"
; 無効状態
"6to4_State"="Disabled"
CMD
:: 選択項目 (1 つだけ使用)

:: 既定の状態
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

# 選択項目 (1 つだけ使用)
# 既定の状態
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