Powershell WinRM客户端无法在指定的时间内完成操作

Powershell WinRM客户端无法在指定的时间内完成操作,powershell,winrm,wsman,Powershell,Winrm,Wsman,这是我尝试连接远程计算机上的Powershell时发生的情况: PS C:\Users\Jonathan> Test-WSMan -ComputerName 54.228.XX.XX Test-WSMan : The WinRM client cannot complete the operation within the time specified. Check if the machine name is val id and is reachable over the networ

这是我尝试连接远程计算机上的Powershell时发生的情况:

PS C:\Users\Jonathan> Test-WSMan -ComputerName 54.228.XX.XX
Test-WSMan : The WinRM client cannot complete the operation within the time specified. Check if the machine name is val
id and is reachable over the network and firewall exception for Windows Remote Management service is enabled.
At line:1 char:11
+ Test-WSMan <<<<  -ComputerName 54.228.XX.XX
    + CategoryInfo          : InvalidOperation: (54.228.XX.XX:String) [Test-WSMan], InvalidOperationException
    + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.TestWSManCommand
我已经确认它正在收听:

PS C:\Users\Administrator> winrm e winrm/config/listener

Listener
    Address = *
    Transport = HTTP
    Port = 5985
    Hostname
    Enabled = true
    URLPrefix = wsman
    CertificateThumbprint
    ListeningOn = 10.35.XXX.XXX, 127.0.0.1...
我选择信任所有主机:

PS C:\Users\Administrator> Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*" -Force

最后,我允许在端口5985上进行入站连接。我错过什么了吗

我认为你必须遵循一些步骤,这里有两个视频可能会有所帮助 enable-psremoting-force命令无法解决问题至少在我的情况下,为了成功远程连接到服务器,您必须遵循一些步骤,我在youtube中将它们录制为视频,在这种情况下,我尝试从另一台服务器远程连接到Web服务器核心


对我们来说,最不幸的解决办法是从头开始重新安装windows。在浪费了我们一周的时间后,这就解决了问题。

我的问题是打开一个升高的外壳并运行:

netsh winhttp重置代理


注意:即使
netsh-winhttp-show-proxy
显示我的机器配置为“直接访问(无代理服务器)”,这仍然有效无需重新启动。

在两台计算机上尝试启用PSRemoting。
-ComputerName 54.228.XX.XX
vs.
ListingOn=10.35.XXX.XXX
是否解决了此问题?我们一直在为同一个问题发愁。防火墙已关闭。所有设置都是按照设置winrm的数百篇帖子进行的。我们可以从同一台服务器远程登录本地主机上的服务,但不能通过ip地址。Windows 2012。无法想象是什么阻止了通过ip地址的连接,但在本地主机上运行良好。@ActionDan不幸的是,我想我最终放弃了。@Jonathan感谢更新,我们也在这样做。
PS C:\Users\Administrator> Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*" -Force