Cisco does a great job with their documentation but unfortunately they didn’t do so well with explaining how to configure their VPN connection for medium to large scale companies. Their documentation only explains how to configure the connection manually, so I decided to use my Powershell skills to write up something really quick. Luckily for us, this task is extremely simple with Powershell.
The following script will automatically configure your Meraki VPN connection on Windows 10:
$ServerAddress = "VPN SERVER ADDRESS" $ConnectionName = "VPN CONNECTION NAME" $PresharedKey = "YOUR PRESHARED KEY" Add-VpnConnection -Name "$ConnectionName" -ServerAddress "$ServerAddress" -TunnelType L2tp -AllUserConnection -L2tpPsk "$PresharedKey" -AuthenticationMethod Pap -Force
This script can be deployed using GPO, your existing system management system or even added to your images with MDT or SCCM.
I hope this helps someone out!