Activer P2P pendant que l’appareil se connecte via VPN : valeur de Registre DOAllowVPNPeerCachingOrdinateurHKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization
- ID de stratégie
- AllowVPNPeerCaching
- Étendue
- Configuration ordinateur
- Pris en charge sur
- Au moins Windows Server 2016, Windows 10
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Catégorie
- Composants Windows › Optimisation de la distribution
Registre
DOAllowVPNPeerCaching
REG_DWORDOrdinateur- Cochée
- 1
- Décochée
- 0
- Élément
- Activer P2P pendant que l’appareil se connecte via VPN
- Type de valeur
- REG_DWORD
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization] ; Options (en utiliser une seule) ; Cochée "DOAllowVPNPeerCaching"=dword:00000001 ; Décochée "DOAllowVPNPeerCaching"=dword:00000000
CMD
:: Options (en utiliser une seule) :: Cochée reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOAllowVPNPeerCaching" /t REG_DWORD /d 1 /f :: Décochée reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOAllowVPNPeerCaching" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Force | Out-Null # Options (en utiliser une seule) # Cochée New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DOAllowVPNPeerCaching' -PropertyType DWord -Value 1 -Force | Out-Null # Décochée New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DOAllowVPNPeerCaching' -PropertyType DWord -Value 0 -Force | Out-Null