gpt4 book ai didi

powershell - WinRM 无法完成操作。验证指定的计算机名称是否有效

转载 作者:行者123 更新时间:2023-12-04 01:42:54 30 4
gpt4 key购买 nike

当我尝试在远程计算机上获取服务信息时,出现 WINRM 错误。

 PS C:\Windows\system32> invoke-command -computername Node1 -ScriptBlock {gsv}
[Node1] Connecting to remote server Node1 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.
+ CategoryInfo : OpenError: (Node1:String) [], PSRemotingTransportException
+ FullyQualifiedErrorId : WinRMOperationTimeout,PSSessionStateBroken

最佳答案

尝试以下解决方法来修复 WINRM 问题。

连接到远程服务器并以管理员身份从 cmd 运行以下命令。

    C:\Windows\system32>WinRM quickconfig
WinRM service is already running on this machine.
WinRM is not set up to allow remote access to this machine for management.
The following changes must be made:

Create a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this
machine.

Make these changes [y/n]? y

WinRM has been updated for remote management.

Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this
machine.

关于powershell - WinRM 无法完成操作。验证指定的计算机名称是否有效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39917027/

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