{"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":"

At the custommer I needed to add SSTP VPN to all the laptops via GPO. But SSTP vpn profile can’t \u00a0be created in GPO. So I looked further and found this at Microsoft\u00a0https:\/\/technet.microsoft.com\/itpro\/powershell\/windows\/vpnclient\/add-vpnconnection<\/a><\/p>\n

Now I created this powershell script<\/p>\n

Add-VpnConnection -Name \"<CONNECTION NAME>\" -ServerAddress \"<SERVER OR PUBLIC IP>\" -TunnelType \"Sstp\" -EncryptionLevel \"Required\" -AuthenticationMethod MSChapv2 -UseWinlogonCredential -AllUserConnection -RememberCredential -PassThru<\/pre>\n

Add it to a GPO and the SSTP VPN connection is created.<\/p>\n","protected":false},"excerpt":{"rendered":"

At the custommer I needed to add SSTP VPN to all the laptops via GPO. But SSTP vpn profile can’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 “<CONNECTION NAME>” -ServerAddress “<SERVER OR PUBLIC IP>” -TunnelType “Sstp” -EncryptionLevel “Required” -AuthenticationMethod MSChapv2 -UseWinlogonCredential […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"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_sharing_enabled":true,"jetpack_featured_media_url":"","_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}]}}