How to Set Up a VPN on Windows 10 & 11

Diagram: A desktop establishing a tunnel through a client application with an adapter binding — illustrating how to set up vpn on windows
A desktop establishing a tunnel through a client application with an adapter binding.

Windows offers three ways to connect to a VPN: using a provider's dedicated client app, using Windows' built-in VPN feature (Settings › Network › VPN), or via PowerShell for enterprise/scripted deployments. This guide covers all three, plus how to configure split tunnelling so only selected apps use the VPN.

Method 1 - Dedicated VPN Client App (Recommended)

StepActionWhere
1Download the installer from your VPN provider's website (e.g., NordVPN for Windows) - Affiliate link - We may earn a commissionProvider website
2Run the installer and follow the setup wizardDownloads folder
3Launch the app and sign inStart menu
4Select a server location and click ConnectApp home screen
5Enable the kill switch in Settings before browsingApp Settings
6Verify with our VPN Leak TestVPN Leak Test

Method 2 - Windows Built-in VPN

StepActionWhere
1Open Settings › Network & Internet › VPNWindows Settings (Win + I)
2Click "Add a VPN connection"VPN settings page
3Set VPN provider to "Windows (built-in)" and choose connection type: IKEv2, L2TP/IPSec, SSTP, or PPTP (use IKEv2)Add VPN dialog
4Enter server address, VPN type, sign-in info from your providerAdd VPN dialog
5Click Save, then click the VPN name and ConnectVPN settings page
6Check the network icon in the taskbar - It should show VPN activeSystem tray

Method 3 - PowerShell VPN Setup

For scripted or enterprise deployments, use Add-VpnConnection in PowerShell (run as Administrator):

  • Open PowerShell as Administrator (right-click Start › Windows PowerShell (Admin)).
  • Run: Add-VpnConnection -Name "MyVPN" -ServerAddress "vpn.example.com" -TunnelType IKEv2 -EncryptionLevel Required -AuthenticationMethod EAP -RememberCredential
  • Replace vpn.example.com with your provider's server address.
  • Connect with: rasdial "MyVPN" username password

Split Tunnelling on Windows

  • Most dedicated VPN apps include a split tunnelling feature in their Settings panel.
  • Split tunnelling lets you route only selected apps (e.g., your torrent client) through the VPN while your browser uses your normal connection - Or vice versa.
  • In the Windows built-in VPN, you can enable "Use default gateway on remote network" being unchecked to route only traffic destined for the VPN's network through the tunnel (for corporate remote access).
  • After enabling split tunnelling, re-run the VPN Leak Test from each app to confirm the routing is correct.
  • See our dedicated guide: What Is VPN Split Tunnelling?

Frequently Asked Questions

Should I use the provider's app or the built-in Windows VPN client?

The provider's app, in nearly all cases. Windows' built-in client does not support WireGuard, has no kill switch, and offers no server selection — it exists for manual corporate configurations.

Why does my internet stop working after I disconnect the VPN?

Usually a stale kill-switch firewall rule that was not removed cleanly. Reconnecting and then disconnecting properly through the app normally clears it; failing that, resetting the network adapter will.

How do I make the VPN connect automatically at startup?

Most provider apps have a launch-on-startup plus auto-connect pair of settings. Enable both, and set auto-connect to trigger on untrusted networks if the option exists.

Can I set up a VPN with PowerShell?

Yes, via the Add-VpnConnection cmdlet, which is useful for scripting deployments across several machines. It is limited to the protocols the built-in client supports, so no WireGuard.

How we evaluate VPNs: every provider on this site is judged on audited no-logs claims, leak-test results, protocol support, jurisdiction, and price transparency — never on commission. How we score every provider →

Affiliate disclosure: Some links to VPN providers in these guides are affiliate links - We may earn a commission at no extra cost to you. This never affects rankings or evaluations.

Last updated: 2026-08-02

Sources & Further Reading

The technical claims on this page are drawn from the primary specifications and vendor documentation below.

  1. NIST SP 800-77 Rev. 1 — Guide to IPsec VPNs NIST
  2. RFC 7296 — Internet Key Exchange Protocol Version 2 (IKEv2) RFC Editor