Route all traffic through the internal network: registry value Force_TunnelingComputerHKLM\Software\Policies\Microsoft\Windows\TCPIP\v6Transition
- Policy ID
- NC_ForceTunneling
- Scope
- Computer Configuration
- Supported on
- At least Windows Server 2008 R2 or Windows 7
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Network › Network Connections
Registry
Force_Tunneling
REG_SZComputer- Enabled value
- Depends on the option value
- Element
- Select from the following states:
| Item | Stored value |
|---|---|
| Enabled State | Enabled |
| Disabled State | Disabled |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\TCPIP\v6Transition] ; Options (use only one) ; Enabled State "Force_Tunneling"="Enabled" ; Disabled State "Force_Tunneling"="Disabled"
CMD
:: Options (use only one) :: Enabled State reg add "HKLM\Software\Policies\Microsoft\Windows\TCPIP\v6Transition" /v "Force_Tunneling" /t REG_SZ /d "Enabled" /f :: Disabled State reg add "HKLM\Software\Policies\Microsoft\Windows\TCPIP\v6Transition" /v "Force_Tunneling" /t REG_SZ /d "Disabled" /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\TCPIP\v6Transition' -Force | Out-Null # Options (use only one) # Enabled State New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\TCPIP\v6Transition' -Name 'Force_Tunneling' -PropertyType String -Value 'Enabled' -Force | Out-Null # Disabled State New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\TCPIP\v6Transition' -Name 'Force_Tunneling' -PropertyType String -Value 'Disabled' -Force | Out-Null