Powershell-Tricks/Adding-VPN-PS.md
2025-07-24 12:39:15 -04:00

480 B

Adding a VPN connection via PowerShell

Generic

Add-VpnConnection -Name "MyVPN" -ServerAddress "vpn.example.com" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -L2tpPsk "YourPreSharedKey" -RememberCredential

APD Mech

Add-VpnConnection -Name "APD Mech" -ServerAddress 98.117.26.22 -TunnelType L2tp -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -L2tpPsk "APDFixMyT33th1!" -RememberCredential