{"id":8885,"date":"2020-04-14T07:16:10","date_gmt":"2020-04-14T07:16:10","guid":{"rendered":"https:\/\/govinddas.com\/?p=8885"},"modified":"2020-04-14T07:16:10","modified_gmt":"2020-04-14T07:16:10","slug":"creating-shortcuts-vpn-windows","status":"publish","type":"post","link":"https:\/\/govinddas.com\/index.php\/creating-shortcuts-vpn-windows\/","title":{"rendered":"creating shortcuts for VPN in windows"},"content":{"rendered":"<header class=\"entry-header\">\n<h1 class=\"entry-title\">Connect to VPN in Windows 10 with one click [desktop shortcut]<\/h1>\n<\/header>\n<div class=\"entry-content\">\n<p>In Windows 10, due to the new Settings app, you need to perform many clicks before you can connect to a VPN server. In Windows 7 or 8.1, you could create a shortcut to your VPN connection and connect to it with just one click. But Windows 10 does not allow you this. Here is a workaround.<\/p>\n<p>In Windows 7, you could quickly connect to VPN using the network flyout which appears from the system tray. VPN connections were listed in the Network pane and you could just double click them!<a href=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/Windows-7-VPN-client-disconnect.png\" data-lightbox=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9577\" src=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/Windows-7-VPN-client-disconnect.png\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" srcset=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/Windows-7-VPN-client-disconnect.png 306w, https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/Windows-7-VPN-client-disconnect-197x300.png 197w\" alt=\"Windows-7-VPN-client-disconnect\" width=\"306\" height=\"465\" \/><\/a>In Windows 8.1 too, you could click the Network icon in the tray, select the VPN connection and click Connect.<\/p>\n<p>However, when you do the same in Windows 10, it shows a list of network connections inside the Settings app instead. Even in that list, when you click the connection&#8217;s name, it shows an additional Settings page instead of a direct way to connect. Also, after connecting, you must close the Settings app. This is incredibly frustrating.<a href=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/set-up-VPN-in-Windows-10-600x405.png\" data-lightbox=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9578\" src=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/set-up-VPN-in-Windows-10-600x405-600x405.png\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/set-up-VPN-in-Windows-10-600x405.png 600w, https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/set-up-VPN-in-Windows-10-600x405-300x203.png 300w\" alt=\"set-up-VPN-in-Windows-10-600x405\" width=\"600\" height=\"405\" \/><\/a><\/p>\n<p>To save your time, you might want to create a shortcut to connect to a VPN directly. Here is how it can be done.<\/p>\n<ol>\n<li>Right click the Desktop and select\u00a0<em>New &#8211; Shortcut<\/em>.<a href=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/01\/Windows-10-new-shortcut.png\" rel=\"attachment wp-att-7588\" data-lightbox=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7588\" src=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/01\/Windows-10-new-shortcut.png\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" srcset=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/01\/Windows-10-new-shortcut.png 550w, https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/01\/Windows-10-new-shortcut-300x213.png 300w\" alt=\"Windows 10 new - shortcut\" width=\"550\" height=\"390\" \/><\/a><\/li>\n<li>In the shortcut target box, type or copy-paste the following command:\n<pre>rasphone -d \"VPN connection name\"<\/pre>\n<p>See the following screenshot:<a href=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/Windows-10-connect-to-VPN-shortcut.png\" data-lightbox=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9579\" src=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/Windows-10-connect-to-VPN-shortcut-600x449.png\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" srcset=\"https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/Windows-10-connect-to-VPN-shortcut-600x449.png 600w, https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/Windows-10-connect-to-VPN-shortcut-300x225.png 300w, https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/Windows-10-connect-to-VPN-shortcut-624x467.png 624w, https:\/\/winaero.com\/blog\/wp-content\/uploads\/2016\/06\/Windows-10-connect-to-VPN-shortcut.png 625w\" alt=\"Windows 10 connect to VPN shortcut\" width=\"600\" height=\"449\" \/><\/a><\/li>\n<li>Set the desired icon and name for your shortcut.<\/li>\n<\/ol>\n<p>Once you do this, just click this shortcut to connect to a VPN directly. You can pin it anywhere you want.<\/p>\n<p>That&#8217;s it.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Winaero.com does a great job of describing\u00a0<a href=\"https:\/\/winaero.com\/blog\/connect-to-vpn-in-windows-10-with-one-click-desktop-shortcut\/\" target=\"_blank\" rel=\"noopener noreferrer\">how to set up the shortcut link for a VPN connection<\/a>, but note that this approach will pop up a CMD console which awkwardly sits there the whole time it is connecting. Fortunately, you can turn that off by setting the Shortcut Property for \u201cRun\u201d as \u201cMinimized\u201d instead of the default \u201cNormal Window.\u201d<\/p>\n<p>That site doesn\u2019t address using a\u00a0<strong>username\/password<\/strong>\u00a0either. If you need these, you can put them in the command, as shown below.<\/p>\n<p>(Note also, you can also create a similar 2nd shortcut for disconnecting with a single click.)<\/p>\n<p>Here are the two shortcuts, and you may want to look closely at the example in the screenshot below.<\/p>\n<pre><strong>Connect Insecurely <\/strong>(this works but don't do it, see comments for why):\n C:\\Windows\\System32\\rasdial.exe \"MYVPN\" username password\n\n<strong>Connect Securely<\/strong> (this uses the encrypted username\/password stored in VPN config):\n C:\\Windows\\System32\\rasphone.exe -d \"MYVPN\"<\/pre>\n<pre><strong>Disconnect:<\/strong>\n C:\\Windows\\System32\\rasdial.exe \"MYVPN\" \/DISCONNECT<\/pre>\n<figure id=\"attachment_860\" class=\"wp-caption aligncenter\" aria-describedby=\"caption-attachment-860\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-860 size-full\" src=\"https:\/\/www.clearhat.org\/wp-content\/uploads\/2018\/05\/SingleClickVPNConnectionScreenshot.png\" sizes=\"auto, (max-width: 382px) 100vw, 382px\" srcset=\"https:\/\/www.clearhat.org\/wp-content\/uploads\/2018\/05\/SingleClickVPNConnectionScreenshot.png 382w, https:\/\/www.clearhat.org\/wp-content\/uploads\/2018\/05\/SingleClickVPNConnectionScreenshot-217x300.png 217w, https:\/\/www.clearhat.org\/wp-content\/uploads\/2018\/05\/SingleClickVPNConnectionScreenshot-145x200.png 145w\" alt=\"How to configure Single Click VPN Connection\" width=\"382\" height=\"527\" \/><figcaption id=\"caption-attachment-860\" class=\"wp-caption-text\">How to configure Single Click VPN Connection. Note, this screenshot shows the insecure version, you really should use the secure version instead.<\/figcaption><\/figure>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_8885\" class=\"pvc_stats all  \" data-element-id=\"8885\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/govinddas.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Connect to VPN in Windows 10 with one click [desktop shortcut] In Windows 10, due to the new Settings app, you need to perform many clicks before you can connect to a VPN server. In Windows 7 or 8.1, you could create a shortcut to your VPN connection and connect to it with just one click. But Windows 10 does not allow you this. Here is a workaround. In Windows 7, you could quickly connect to VPN using the network&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/govinddas.com\/index.php\/creating-shortcuts-vpn-windows\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_8885\" class=\"pvc_stats all  \" data-element-id=\"8885\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/govinddas.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2],"tags":[],"class_list":["post-8885","post","type-post","status-publish","format-aside","hentry","category-general-discussion","post_format-post-format-aside"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts\/8885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/comments?post=8885"}],"version-history":[{"count":0,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/posts\/8885\/revisions"}],"wp:attachment":[{"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/media?parent=8885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/categories?post=8885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/govinddas.com\/index.php\/wp-json\/wp\/v2\/tags?post=8885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}