デバイスが VPN 経由で接続している間は P2P を有効にする のレジストリ値 DOAllowVPNPeerCachingコンピューターHKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization

ポリシー ID
AllowVPNPeerCaching
適用対象
コンピューターの構成
サポートされるバージョン
Windows Server 2016 以降または Windows 10 以降
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
Windows コンポーネント › 配信の最適化

レジストリ

DOAllowVPNPeerCaching

REG_DWORDコンピューター
チェックあり
1
チェックなし
0
要素
デバイスが VPN 経由で接続している間は P2P を有効にする
値の種類
REG_DWORD
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

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

; 選択項目 (1 つだけ使用)
; チェックあり
"DOAllowVPNPeerCaching"=dword:00000001
; チェックなし
"DOAllowVPNPeerCaching"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用)

:: チェックあり
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOAllowVPNPeerCaching" /t REG_DWORD /d 1 /f
:: チェックなし
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v "DOAllowVPNPeerCaching" /t REG_DWORD /d 0 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# チェックあり
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DOAllowVPNPeerCaching' -PropertyType DWord -Value 1 -Force | Out-Null
# チェックなし
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization' -Name 'DOAllowVPNPeerCaching' -PropertyType DWord -Value 0 -Force | Out-Null