{"id":195,"date":"2017-06-08T20:25:47","date_gmt":"2017-06-08T18:25:47","guid":{"rendered":"http:\/\/blog.van-daag.nl\/?p=195"},"modified":"2017-06-08T20:25:47","modified_gmt":"2017-06-08T18:25:47","slug":"add-sstp-vpn-connection-via-powershell","status":"publish","type":"post","link":"https:\/\/van-daag.nl\/?p=195","title":{"rendered":"Add SSTP VPN connection via Powershell"},"content":{"rendered":"<p>At the custommer I needed to add SSTP VPN to all the laptops via GPO. But SSTP vpn profile can&#8217;t \u00a0be created in GPO. So I looked further and found this at Microsoft\u00a0<a href=\"https:\/\/technet.microsoft.com\/itpro\/powershell\/windows\/vpnclient\/add-vpnconnection\">https:\/\/technet.microsoft.com\/itpro\/powershell\/windows\/vpnclient\/add-vpnconnection<\/a><\/p>\n<p>Now I created this powershell script<\/p>\n<pre class=\"lang:ps decode:true \">Add-VpnConnection -Name \"&lt;CONNECTION NAME&gt;\" -ServerAddress \"&lt;SERVER OR PUBLIC IP&gt;\" -TunnelType \"Sstp\" -EncryptionLevel \"Required\" -AuthenticationMethod MSChapv2 -UseWinlogonCredential -AllUserConnection -RememberCredential -PassThru<\/pre>\n<p>Add it to a GPO and the SSTP VPN connection is created.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At the custommer I needed to add SSTP VPN to all the laptops via GPO. But SSTP vpn profile can&#8217;t \u00a0be created in GPO. So I looked further and found this at Microsoft\u00a0https:\/\/technet.microsoft.com\/itpro\/powershell\/windows\/vpnclient\/add-vpnconnection Now I created this powershell script Add-VpnConnection -Name &#8220;&lt;CONNECTION NAME&gt;&#8221; -ServerAddress &#8220;&lt;SERVER OR PUBLIC IP&gt;&#8221; -TunnelType &#8220;Sstp&#8221; -EncryptionLevel &#8220;Required&#8221; -AuthenticationMethod MSChapv2 -UseWinlogonCredential [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6,11,19],"tags":[],"class_list":["post-195","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-powershell-script","category-windows-10"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=195"}],"version-history":[{"count":0,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/195\/revisions"}],"wp:attachment":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}