gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 16:35:35 25 4
gpt4 key购买 nike

这是当我尝试连接到远程计算机上的 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

在我的远程计算机上,我已确认 WinRM 正在运行:

PS C:\Users\Administrator> net start winrm

The Windows Remote Management (WS-Management) service is starting.
The Windows Remote Management (WS-Management) service was started successfully.

我已经确认它正在监听:

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 上的入站连接。我错过了什么吗?!

最佳答案

对我们来说不幸的解决方案是从头开始并重新安装 Windows。在浪费了我们一周的时间之后,问题就解决了。

关于powershell - WinRM 客户端无法在指定时间内完成操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18129015/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com