windows rasdial失败并显示“此网络连接不存在”,

fhity93d  于 11个月前  发布在  Windows
关注(0)|答案(1)|浏览(147)

我尝试使用rasdial连接到我机器上的VPN,但使用This network connection does not exist.时一直失败:

# Admin pwsh
> rasdial MYVPN-Manual
Connecting to MYVPN-Manual...
Verifying username and password...This network connection does not exist

字符串
我该如何解决此问题?

更多信息

> Get-VpnConnection | select name

name
----
Another VPN
MYVPN-Manual

ego6inou

ego6inou1#

**编辑:*这个答案似乎不正确。令人困惑的部分是,我连接到VPN * 通过行动中心UI 之间尝试与/不与报价。

您需要在VPN名称周围加上引号(因为它似乎有特殊字符):

> rasdial "MYVPN-Manual"
Connecting to MYVPN-Manual...
Verifying username and password...
Registering your computer on the network...
Successfully connected to MYVPN-Manual.
Command completed successfully.

字符串
rasdial documentation
如果ConnectionName包含空格或特殊字符,请在文本(即“Connection Name”)周围使用引号。

相关问题