# Adding a VPN connection via PowerShell ## Generic ```powershell Add-VpnConnection -Name "MyVPN" -ServerAddress "vpn.example.com" -TunnelType "L2tp" -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -L2tpPsk "YourPreSharedKey" -RememberCredential ``` ## APD Mech ```powershell Add-VpnConnection -Name "APD Mech" -ServerAddress 98.117.26.22 -TunnelType L2tp -EncryptionLevel "Required" -AuthenticationMethod MSChapv2 -L2tpPsk "APDFixMyT33th1!" -RememberCredential ```