The Windows 10 VPN Client and IPv4 Settings

As soon as Windows 10 RTM was released, a large number of people at my company were asking to be upgraded. Unfortunately, we did not have time to troubleshoot all the potential issues we might encounter. One thing we discovered still lingering from the last preview build was that you cannot edit the IPv4 settings inside of a vpn profile.

We usually un-check the box under advanced IPv4 properties labeled “Use default gateway on remote network” so that employees can funnel internet access through their local gateway while connected to the company vpn. Hopefully, this will be resolved in a coming update or service pack.

In the meantime, we’re setting up vpn connections using Powershell. Here’s my script to add a vpn profile using MSCHAPv2 for authentication, SSTP as the vpn connection type, and enabling split tunneling (same as un-checking the default gateway box):

In PowerShell —

Add-VPNConnection -Name vpn connection name -ServerAddress vpn servername  -TunnelType SSTP -EncryptionLevel Optional -AuthenticationMethod MSChapv2 -SplitTunneling -AllUserConnection -UseWinLgonCredential -PassThru

There are many other vpn client cmdlets available to customize your connection. Visit: https://technet.microsoft.com/en-us/library/jj554820(v=wps.630).aspx to view a complete list.

Advertisements