Created
January 15, 2022 08:29
-
-
Save MayMeow/3c332763f1b7d8918a51844a8fe7991c to your computer and use it in GitHub Desktop.
Add VPN connection with Powershell
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-l2tp.ps1 | |
param($name, $server, $psk) | |
Add-VpnConnection -Name $name -ServerAddress $server -TunnelType "L2tp" -AuthenticationMethod Chap,MSChapv2,Pap -L2tpPsk $psk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment