Last active
January 31, 2018 17:32
-
-
Save hannesbe/afcce88786e5a24d5382ae8cf7c6f51a to your computer and use it in GitHub Desktop.
Powershell script to create PPTP VPN Connexeon in Windows, for all users & no additional login required client has joined AD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-VpnConnection -Name "VPN Connexeon" -ServerAddress "vpn.connexeon.com" -TunnelType Pptp -EncryptionLevel Required -AuthenticationMethod MSChapv2 -AllUserConnection -RememberCredential -PassThru -UseWinlogonCredential | |
Set-VpnConnection "VPN Connexeon" -AllUserConnection -SplitTunneling $True | |
Add-VpnConnectionRoute -ConnectionName "VPN Connexeon" -DestinationPrefix 10.0.0.0/12 -PassThru | |
Add-VpnConnectionRoute -ConnectionName "VPN Connexeon" -DestinationPrefix 10.111.0.0/16 -PassThru | |
Add-VpnConnectionRoute -ConnectionName "VPN Connexeon" -DestinationPrefix 10.50.0.0/16 -PassThru |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install using this onliner: