Blog L2TP/IPSec VPN in Windows 10 Add the registry key needed to allow L2TP/IPSec VPNs to connect correctly in Windows 10. 1 reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /d 2 /t REG_DWORD