create vpn profile on windows xp , embedded standard , 7 by powershell script

Aaron EOM 0 Reputation points
2020-08-11T00:57:24.723+00:00

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

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,724 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,266 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,355 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Aaron EOM 0 Reputation points
    2020-08-11T01:14:05.44+00:00

    if it could not create by powershell on windows xp and 7 ,

    please let me know how to create vpn profile by just one click.

    thanks again.

    0 comments No comments

  2. 2020-08-20T01:24:28.863+00:00

    Hi, the main purpose of this forum is to answer users' questions about script commands. The development of scripts is not the main task of this forum. Of course, we are very happy to see other users or experts able to solve your problem.
    In addition, if you solve your problem yourself, you can post it in the post if necessary, so that users with the same problem can find the answer.

    0 comments No comments