Skip to content

Instantly share code, notes, and snippets.

@MayMeow
Created January 15, 2022 08:29
Show Gist options
  • Save MayMeow/3c332763f1b7d8918a51844a8fe7991c to your computer and use it in GitHub Desktop.
Save MayMeow/3c332763f1b7d8918a51844a8fe7991c to your computer and use it in GitHub Desktop.
Add VPN connection with Powershell
# 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