powershell - Azure WinRM 的认证测试工具 1.2 无法完成操作

标签 powershell azure connection virtual-machine

我目前正在尝试使用 Windows Server 2012 数据中心连接到我的虚拟机,并通过Azure 认证测试工具 1.2 连接到它。并且总是收到此错误:

Connecting to remote server xyz-vm.westeurope.cloudapp.azure.com failed with the following error message: WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic.

我猜该工具正在使用 PSRemot,所以我检查了:

  • “winrm”正在运行。
  • 防火墙中启用了“PS 远程处理”。
  • 端口 5985 和 5986 位于 Azure 中的网络安全组中,且本地虚拟机防火墙允许使用端口 5985 和 5986。

我通过 Test-WSMan 测试了连接,并获得了连接: screenshot 。但与认证测试工具的连接仍然失败。

即使完全关闭虚拟机的防火墙,它也不起作用

感谢您的帮助

最佳答案

您可以在虚拟机上的cmd中运行netsh winhttp show proxy

如果这显示端口 8080,您可以运行 netsh winhttp Reset proxy

关于powershell - Azure WinRM 的认证测试工具 1.2 无法完成操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48811443/

相关文章:

excel - PowerShell - 导入 Excel,然后导出 CSV,无需使用 Excel 或 COM

powershell - 是否可以只包含函数而不执行脚本?

Azure 事件中心消费者组

PHP/MySQL : Create new connection for each query?

powershell - 如何在 PowerShell 中检索 IIS 网站的 SSL 证书

asp.net-mvc - 为什么使用 SignalR 从 MVC 应用程序推送消息无法到达客户端?

video - 从 Azure Blob 存储流式传输视频

java - Android - 关闭特定的蓝牙套接字

c# - 如何设置测试TCP连接超时?

powershell - RDP进入具有特定用户名的服务器