3.Dial to VPN by Windows command
1.Create a vpn.txt in "c:\Windows\System32\ras\" folder:
[CONNECTION NAME] MEDIA=rastapi Port=VPN2-0 Device=WAN Miniport (IKEv2) DEVICE=vpn PhoneNumber=192.168.31.21
2.Copy vpn.txt's content to type "c:\Windows\System32\ras\rasphone.pbk"
type vpnConfig.txt>>rasphone.pbk
3.Dial it
rasdial "CONNECTION NAME"
Last updated
Was this helpful?