What you will achieve
Configure a VPN connection using Windows built-in client for L2TP/IPsec, IKEv2, or PPTP (where still supported) without third-party VPN software.
1) Add a VPN connection in Settings
- Open Settings → Network & internet → VPN → Add VPN.
- Enter a connection name, VPN provider Windows (built-in), server name or address from your VPN admin.
- Choose VPN type: IKEv2 (recommended), L2TP/IPsec, or PPTP (legacy, avoid if possible).
- Enter username and password or choose certificate-based auth if your organisation requires it.
2) Connect and verify
- Click the VPN entry and choose Connect.
- Check assigned IP:
ipconfigin Command Prompt — look for a PPP or TAP adapter with a new address. - Confirm split tunnel vs full tunnel with your IT team (whether all traffic or only corporate subnets route through VPN).
3) Create via PowerShell (scriptable)
Add-VpnConnection -Name "Work VPN" -ServerAddress "vpn.example.com" -TunnelType "Ikev2" -AuthenticationMethod EAP -EncryptionLevel Required -RememberCredential
4) Troubleshoot common failures
- Error 809 (IKEv2): ensure UDP 500 and 4500 are allowed on the firewall/router.
- L2TP: install the correct pre-shared key under VPN adapter Properties → Security → Advanced settings.
- Run Settings → Network & internet → Advanced network settings → Network reset only as a last resort — it removes all VPN profiles.
5) Split tunneling (Windows 11)
- Settings → Network & internet → VPN → [connection] → Advanced options.
- Add routes or use vendor profile if built-in client lacks split tunnel UI — some orgs deploy XML profiles via Intune.
6) Export VPN profile
Get-VpnConnection | Export-Clixml "$env:USERPROFILE\Desktop\vpn-backup.xml"
7) Always-on VPN (Pro/Enterprise)
- Configured via Intune or PowerShell
VPNv2CSP — auto-connect before user logon for corporate laptops. - Home users typically use manual connect from Settings tray icon.
8) Certificate-based VPN
- Import machine cert to Local Computer store via
certlm.mscfor IKEv2 cert auth. - Match EKU for client authentication — wrong cert type fails with opaque error 789.
- Enterprise profiles often deploy via
rasphone.pbkor Intune VPN profile — manual setup mirrors same fields.
Verification checklist
Disconnect VPN and confirm public IP returns. Reconnect and verify internal DNS resolves intranet hostnames — split tunnel misconfig shows connected but no internal access.
- Reboot once after changes that affect services, drivers, or firmware.
- Confirm the original problem is resolved under normal daily use, not only immediately after the fix.
- Note date, Windows version (Settings → System → About), and what changed in your personal runbook for next time.