Hi !
i made powershell script for create vpn profile on Windows 10 , but this script doesn't work on windows xp , embedded standard and 7 .
our pos system still using windows those windows version. and we need using L2TP client vpn of Cisco Meraki ,
can anyone makes me powershell script for each windows version ?
this is powershell script on windows 10 that is working very well.
$ServerAddress = "123.123.123.123"
$ConnectionName = "VPNTEST"
$PresharedKey = "vpntest"
$Destination = "192.168.33.0/24"
$Destination2 = "192.168.100.0/24"
Add-VpnConnection -Name "$ConnectionName" -ServerAddress "$ServerAddress" -TunnelType L2tp -L2tpPsk "$PresharedKey" -AuthenticationMethod Pap
Set-VpnConnection -Name $ConnectionName -SplitTunneling $True
Add-Vpnconnectionroute -Connectionname $ConnectionName -DestinationPrefix $Destination
Add-Vpnconnectionroute -Connectionname $ConnectionName -DestinationPrefix $Destination2