$ConnectionName = "ContosoL2TP"
$VPNServer = "
vpn1.contoso.com"
$DNSSuffix = "contoso.local"
$L2TPPSK = "ftohgyf86iopiyvlTFrdofgoD5r6f9v"
$LocalSubnet = "
172.16.134.0/24"
Add-VpnConnection -Name $ConnectionName -ServerAddress $VPNServer -TunnelType L2tp -RememberCredential -DnsSuffix $DNSSuffix -L2tpPsk $L2TPPSK -AuthenticationMethod mschapv2 -EncryptionLevel Required -SplitTunneling
add-vpnconnectionroute -destinationprefix $LocalSubnet -connectionname $ConnectionName