Habilitar P2P enquanto o dispositivo se conecta via VPN: valor do Registro DOAllowVPNPeerCachingComputadorHKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization

ID da política
AllowVPNPeerCaching
Escopo
Configuração do Computador
Compatível com
Pelo menos Windows Server 2016, Windows 10
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Componentes do Windows › Otimização de Entrega

Registro

DOAllowVPNPeerCaching

REG_DWORDComputador
Marcado
1
Desmarcado
0
Elemento
Habilitar P2P enquanto o dispositivo se conecta via VPN
Tipo de valor
REG_DWORD
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization]

; Opções (use apenas uma)
; Marcado
"DOAllowVPNPeerCaching"=dword:00000001
; Desmarcado
"DOAllowVPNPeerCaching"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Marcado
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOAllowVPNPeerCaching" /t REG_DWORD /d 1 /f
:: Desmarcado
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOAllowVPNPeerCaching" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Force | Out-Null

# Opções (use apenas uma)
# Marcado
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DOAllowVPNPeerCaching' -PropertyType DWord -Value 1 -Force | Out-Null
# Desmarcado
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DOAllowVPNPeerCaching' -PropertyType DWord -Value 0 -Force | Out-Null