我正在尝试使用PowerShell打开VPN连接对话框。在我的情况下rasdial和rasphone都不工作,但点击VPN名称,然后点击连接正在工作。它同样点击任务管理器中的网络,然后单击VPN名称,提示窗口如 -
希望使用powershell
执行此操作答案 0 :(得分:1)
I've checked a bit internally. This is currently not possible:
rasdial does not work with cert-based authentication, which Azure P2S VPN uses. And it typically could not be used to invoke the connection window.
The current Windows PowerShell only supports creating VPN profile, does not support invoking connection.
Thanks, Yushun [MSFT]