Set Teredo Client Port
Définir le port client Teredo
Explanation
This policy setting allows you to select the UDP port the Teredo client will use to send packets. If you leave the default of 0, the operating system will select a port (recommended). If you select a UDP port that is already in use by a system, the Teredo client will fail to initialize.
If you enable this policy setting, you can customize a UDP port for the Teredo client.
If you disable or do not configure this policy setting, the local host setting is used.
Ce paramètre de stratégie vous permet de sélectionner le port UDP utilisé par le client Teredo pour envoyer des paquets. Si vous laissez la valeur par défaut 0, le système d’exploitation sélectionne un port (recommandé). Si vous sélectionnez un port UDP déjà utilisé par un système, l’initialisation du client Teredo échoue.
Si vous activez ce paramètre de stratégie, vous pouvez personnaliser un port UDP pour le client Teredo.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, c’est le paramètre de l’hôte local qui est utilisé.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\TCPIP\v6Transition- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: tcpip/Teredo_Client_Port
$k = 'HKLM:\Software\Policies\Microsoft\Windows\TCPIP\v6Transition'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
#
Set-ItemProperty -Path $k -Name 'Teredo_ClientPort' -Value 0 -Type DWord # between 0 and 65535Disable
# Disable: tcpip/Teredo_Client_Port
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": tcpip/Teredo_Client_Port
$k = 'HKLM:\Software\Policies\Microsoft\Windows\TCPIP\v6Transition'
Remove-ItemProperty -Path $k -Name 'Teredo_ClientPort' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| TeredoClientPortBox | Numeric boxdecimal | Teredo_ClientPort | REG_DWORD | Required · Min: 0 · Max: 65535 · Default (UI): 0 |