使用powershell打开指定的VPN连接对话框

时间:2016-08-06 16:46:35

标签: powershell azure-powershell azure-virtual-network

我正在尝试使用PowerShell打开VPN连接对话框。在我的情况下rasdial和rasphone都不工作,但点击VPN名称,然后点击连接正在工作。它同样点击任务管理器中的网络,然后单击VPN名称,提示窗口如 -

enter image description here

希望使用powershell

执行此操作

1 个答案:

答案 0 :(得分:1)

I've checked a bit internally. This is currently not possible:

  1. 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.

  2. The current Windows PowerShell only supports creating VPN profile, does not support invoking connection.

Thanks, Yushun [MSFT]