Monday, August 17, 2015

Enable Split Tunneling on Windows 10 VPN Connections

In previous versions of Windows Server, Split Tunneling was enabled by removing the default gateway from the IPv4 settings under the properties of a Windows PPTP, L2TP or SSTP VPN connection.  This was done on the Networking tab and selecting Properties on the Internet Protocol 4 (TCP/IPv4) settings.

 
In Windows 10 if you click properties on the Internet Protocol Version 4 (TCP/IPv4) settings, nothing happens the button has no code behind it.
 
On Windows 10, to enable Split Tunneling this must now be done with PowerShell. 
 
Set-VpnConnection "VPN Connection Name" -SplitTunneling $true
 
 
 After enabling the VPNConnection for Split Tunneling this achieves the same affect as the "Use as Default Gateway" button from the IPv4 properties dialog box.

23 comments:

  1. This seems like a ridiculous change to make and hope that with Threshold2 later this year they allow you to do it from the GUI as before or from the new VPN settings.

    ReplyDelete
    Replies

    1. free product key for windows 7 , microsoft office visio professional 2007 product key , windows 7 professional key , windows 8.1 professional key , windows 7 profesyonel key , buy windows 7 product key , product key for microsoft office 2007 project standard , buy windows 10 product key , lgSh3z

      Delete
    2. key to office university 2010 , office 2013 activation keys , windows 7 anytime upgrade key , windows 10 serial keys product key torrent , windows 7 professional keygen download , buy windows activation code , windows 10 product key sale , windows 10 activation 0x80072efe , sXId68

      windows 10 pro key

      office 2013 pro key sale

      cheap visual studio key buy

      Delete

    3. cheap office 2016 series key , how to activate microsoft office 2010 professional plus genuine product key , windows 10 serial key free , windows 8 consumer preview genuine product key free download , windows 10 serial key how to find , windows 10 serial keys fb , windows 10 key sale , windows 7 enterprise service pack 1 validation keys , lDENDa

      buy office 2016 product key

      windows server 2012 r2 free

      rosetta stone french key sale

      Delete
    4. windows 10 product key same as windows 7 , antivirus 1 year genuine key 2012 , windows 10 product key code , windows server 2012 r2 free , office 2016 registry purchase , windows 10 product key 2015 , product key windows 7 home premium 32 bit free , windows 10 serial key generator , sp2qWd

      office 2016 registry purchase

      cheap office 2013 key

      microsoft visio professional 2016 order

      cheap windows 10 product key sale

      Delete
    5. windows 10 product key same as windows 7 , antivirus 1 year genuine key 2012 , windows 10 product key code , windows server 2012 r2 free , office 2016 registry purchase , windows 10 product key 2015 , product key windows 7 home premium 32 bit free , windows 10 serial key generator , sp2qWd

      office 2016 registry purchase

      cheap office 2013 key

      microsoft visio professional 2016 order

      cheap windows 10 product key sale

      Delete
  2. Note if you arrived at windows 10 from an upgrade it may report "The configuration cannot be applied to the local user VPN connection VPN. : The system could not find the phone book entry for this connection."

    Simply delete the VPN via the GUI and recreate it using the PowerShell commands:

    Add-VpnConnection -Name VPN -ServerAddress aaa.bbb.ccc.ddd
    Set-VpnConnection "VPN" -SplitTunneling $true
    Set-VpnConnection "VPN" -RememberCredential $true

    ReplyDelete
  3. There is no such options in windows 10, so you need to edit .phb file in %AppData%\Microsoft\Network\Connections\Pbk

    DisableClassBasedDefaultRoute=1

    ReplyDelete
    Replies
    1. i couldnt fine this entry, where can i find it?

      Delete
    2. i mean the DisableClassBasedDefaultRoute to set is as 1

      Delete
  4. I have arrived to this page after searching the Internet for a similar problem you are discussing. I need to set the primary and secondary DNS servers in my VPN connection in Windows 10. However, as you wrote herein there is no option to use GUI for a VPN connection in Network -> Internet Protocol Version 4 (6) -> Properties (button not accessible) which was the case of the previous Windows OSs.I found the rasphone.pbk file where the parameter IpDNSAddress could be changed to a corresponding IP address of a DNS server located on the remote LAN. I need that server to perform DNS resolution after the VPN connection is established because of access to local PCs with their FQDN from the PC the VPN connection was triggered by. It has had no affect, however. The DNS resolution is still done by the DNS server of the LAN that my PC is connected on and the VPN connection to a remote network was going to be done from. Does somebody among you know how to solve this problem and/or is there a knowledge Microsoft is going to allow users to adjust their VPN aconnection via GUI the way it was in Windows 8.1 for example? Many thanks for any reply.

    ReplyDelete
  5. Awesome! Exactly what I needed! Thank you.

    ReplyDelete
  6. Buywindows10keysale.com
    To buy a genuine product key, go to the site http://www.Buywindows10keysale.com/. This is definitely not like some sites which will make you worry about the purchasing safety. The payment process is confidential and guaranteed. More importantly, windows 8 product key is genuine and with attractive price.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Hello, I have browsed most of your posts. This post is where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject.
    pest control san antonio

    ReplyDelete
  10. من على موقعنا الموقع الرائعة فى تصميم مواقع مع شركة سوقني لدينا الكثير من خدمات شركة تصميم مواقع شركة سوقني لكافة خدمات وخصومات الويب

    ReplyDelete
  11. مع شركة سوقني نقدم اليكم افضل الخدمات الرائعة والخصومات الكبيرة فى اعمال شركة تنظيف منازل بمكة تمتعوا بالكثير من افضل الاعمال الرائعة والمميزة التى نقدمها اليكم

    ReplyDelete
  12. يوجد على موقعنا كافة الخدمات التى تريدها فى اعمال نقل عفش مكة خصومات كبيرة جدا واعمال رائعة ومميزة نقدمها اليكم من على موقعنا

    ReplyDelete
  13. من على موقعنا يوجد فضل الخدمات الكبيرة صيانة توشيبا والاعمال الممبزة فى خصومات وخدمات صيانة فريجيدير لدينا على موقعنا الكثير من اعمال الصيانات الرئعة

    ReplyDelete
  14. يعتبر موقعنا واحد من المواقع الكبري المتخصصة فى اعمال وخدمات تجهيزات فنادق اشهر موقع تجهيزات الرائع والمتميز نقدمه اليكم من على موقعنا

    ReplyDelete
  15. VPN Service providers include Express VPN, Nord VPN, VyprVPN, Private Internet Access, HideMyAss, Cyberghost, Cactus VPN, VPN ac, IP Vanish, Liquid VPN, Strong VPN. Stay hidden!

    ReplyDelete
  16. I blog frequently and I really appreciate your information. This great article has truly peaked my interest.
    http://el-tamimi.com/legal-consultants/
    http://el-tamimi.com/divorce-lawyer/
    http://el-tamimi.com/lawyer-number/


















    ReplyDelete