How to add a VPN connection in Windows 10

by Elena Constantinescu
Elena Constantinescu
Elena Constantinescu
VPN Expert & Privacy Advocate
Elena started writing professionally in 2010 and hasn't stopped exploring the tech world since. With a firm grasp of software reviewing and content editing, she is always trying... read more
Affiliate Disclosure
  • Discover how to add a VPN connection to your Windows PC in three ways: using the built-in VPN provider, PowerShell, or a commercial VPN service.
  • If you use the integrated VPN provider, you don't have to install anything else. But it doesn't support modern VPN protocols like OpenVPN or WireGuard.
  • PowerShell requires expert computer skills because you have to use a special cmdlet and enter the parameters correctly.
  • Using a commercial VPN service is the simplest way. Plus, you can benefit from advanced settings and easily customize preferences.
how to add VPN connection to Windows 10

You can add a VPN connection to Windows 10 in several ways, whether you’re a seasoned computer user or just a casual home user.

A VPN creates a secure tunnel to divert your network traffic to another service. It can be used for two main reasons: to remotely connect to another LAN or to secure your Internet access.

In this article, we’re showing you how to set up a VPN connection on a Windows 10 desktop, laptop or tablet for both reasons.

How do I add a VPN connection on Windows 10?

Use the Windows 10 built-in VPN client

  1. Right-click the Windows 10 Start button and select Network connectionsaccess Network Connections from the Windows 10 Start menu
  2. In Settings, select VPNaccess the VPN section from Windows 10 Settings
  3. Click Add a VPN connectionadd a VPN connection to Windows 10
  4. Set the following propertiesadd a VPN connection in Windows 10
    • VPN provider to Windows (built-in)
    • Connection name to a display name of the VPN connection
    • Server name or address to the remote VPN server address or domain
    • VPN type to Automatic (unless you have specific instructions about the VPN protocol)
    • Type of sign-in info to User name and password (usually)
    • User name (optional) and Password (optional) to the login credentials provided by your VPN service
    • Check the Remember my sign-in info box
    • Click Save

Windows 10 has a built-in VPN provider, which means that you don’t have to install anything to connect to a VPN. However, keep in mind that it doesn’t support modern protocols like OpenVPN or WireGuard.

If your office administrator shared VPN connection details for OpenVPN or WireGuard, then you have to separately install the OpenVPN or WireGuard clients.

Use the Add-VpnConnection cmdlet in PowerShell

You can also set up a VPN connection on your Windows 10 PC by adding it to the Connection Manager phone book.

To do this, you need PowerShell and advanced computer skills:

  1. Right-click the Windows 10 Start button
  2. Select Windows PowerShell (Admin) and click Yes if prompted by UACaccess PowerShell with admin rights from the Windows 10 Start menu
  3. Paste the following codeuse the add-vpnconection cmdlet in Windows 10 PowerShell
    • Add-VpnConnection
      • [-Name] <String>
      • [-ServerAddress] <String>
      • [-RememberCredential]
      • [-SplitTunneling]
      • [-Force]
      • [-PassThru]
      • [-ServerList <CimInstance[]>]
      • [-DnsSuffix <String>]
      • [-IdleDisconnectSeconds <UInt32>]
      • [-PlugInApplicationID] <String>
      • -CustomConfiguration <XmlDocument>
      • [-CimSession <CimSession[]>]
      • [-ThrottleLimit <Int32>]
      • [-AsJob]
      • [-WhatIf]
      • [-Confirm]
      • [<CommonParameters>]
  4. Fill out the parameters by following the Microsoft instructions.

Use a commercial VPN service

If you’re looking for a solution to change your IP address, protect your online privacy, and remain anonymous when browsing the Internet, use a commercial VPN service.

It’s the easiest way to not only set up a VPN connection on your Windows 10 computer but also to change VPN servers. Plus, you can benefit from advanced security settings and effortlessly customize your options.

For example, if you want to change the VPN server location or protocol, you have to go through multiple steps using the Windows 10 built-in VPN provider. But a commercial VPN service simplifies everything.

Private Internet Access helps you unblock Netflix

And we can’t think of a better VPN for the job than Private Internet Access. It’s compatible with Windows, Mac, Android, iOS, Linux, and even routers. And it allows 10 simultaneous device connections through the same account.

PIA comes with some awesome advanced options that can be easily explored: OpenVPN and WireGuard protocols and Shadowsocks proxy (which Windows 10 lacks), split tunneling, kill switch, private DNS servers, and native port forwarding.

Here’s how you can add a VPN connection on Windows 10 using PIA:

PIA is connected to a US VPN server
  1. Get a PIA subscription plan
  2. Download and install PIA for Windows 10
  3. Launch PIA and log in with your credentials
  4. Press the big power button to connect to a VPN server

More about PIA:

  • More than 23,500 VPN and proxy servers across 77 countries
  • No logs or leaks
  • 24/7 live chat support
  • 30-day money-back guarantee (no free trial)
  • Pay with a credit card, PayPal, crypto
Private Internet Access

Private Internet Access

Easily connect to a VPN and change settings on your Windows 10 PC using this reliable VPN service.

Check priceBuy it now

We firmly believe that Private Internet Access is the best VPN for Windows 10.


To sum up, you can easily add a VPN connection using the Windows 10 built-in provider, without having to install any software.

Or, you can use the Add-VpnConnection cmdlet in PowerShell to achieve the same results, although this requires expert skills.

The fastest way for casual users to secure their Internet connections is by turning to a reliable commercial VPN service like Private Internet Access (buy here). It’s easy to install, set up, and customize preferences.

Your connection is not secure - websites you visit can find out your details:

  • Your IP
  • Your IP Address:

Companies can sell this information, alongside your location and internet provider name, and profit from it by serving targeted ads or monitoring your data usage.

Use a VPN to protect your privacy and secure your connection.

We recommend Private Internet Access, a VPN with a no-log policy, open source code, ad blocking and much more; now 79% off.

Frequently Asked Questions

  • You can seamlessly add a VPN connection on Windows 10 using the built-in VPN provider. Alternatively, you can use the Add-VpnConnection cmdlet in PowerShell. But the easiest way is to get a commercial VPN service.

  • You should set up a VPN at home on a Windows 10 PC if you want to remotely access your home network resources from anywhere in the world. Or you can use a paid VPN solution at home for secure browsing.

  • The Windows 10 built-in VPN provider is easy to use, but it only acts as a client. You still need to get VPN connection details from somewhere before adding them to Windows.

This article covers:Topics: