在PowerShell中执行命令:
- 添加L2TP拨号连接
Add-VpnConnection -Name "Test1" -ServerAddress "14.204.86.82" -TunnelType L2tp -AuthenticationMethod Chap,MsChapv2,Pap -RememberCredential -PassThru
- 查看新添加的L2TP拨号连接
# 查看所有拨号连接
Get-VpnConnection
# 查看名为Test1的拨号连接
Get-VpnConnection -Name "Test1"
- 删除名为Test1的拨号连接
Remove-VpnConnection -Name "Test1" -Force -PassThru
- 修改注册表取消L2TP与IPSec的关联
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters /v ProhibitIpSec /t reg_dword /d 1 /f
- 用户名和密码得手动输入