@echo off
cls
@setlocal enableextensions
@cd /d "%~dp0"

powershell -Command "& {Add-VpnConnection -Name "ICTP-VPN" -ServerAddress "vpn.ictp.it" -AllUserConnection -TunnelType Ikev2 -EncryptionLevel Optional -AuthenticationMethod "Eap"   -DnsSuffix "ictp.it"}"
powershell -Command "& {Set-VpnConnectionProxy -Name ICTP-VPN -AutoConfigurationScript  http://wpad.ictp.it/wpad.dat}"
powershell -Command "& {Get-VpnConnection -Name "ICTP-VPN" -AllUserConnection}"
pause
