WinRM不返回客户端信息-quickconfig不起作用

时间:2018-07-10 13:06:04

标签: powershell winrm

我正在尝试在WinRM上更改设置,但是我一直收到错误消息。

我已经在网络上阅读了很多有关它的文章,但是我无法获得任何建议的修复方法

当我尝试获取winRM quickconfig(这是常见的建议修复)时,我会得到以下提示:

PS C:\Windows\system32> winrm qc
WinRM service is already running on this machine.
WSManFault
    Message = The client cannot connect to the destination specified in the request. Verify that the service on the dest
ination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running o
n the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the
 destination to analyze and configure the WinRM service: "winrm quickconfig".

Error number:  -2144108526 0x80338012
The client cannot connect to the destination specified in the request. Verify that the service on the destination is run
ning and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destinat
ion, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination t
o analyze and configure the WinRM service: "winrm quickconfig".

该服务正在运行,并且防火墙规则均已正确设置。

无论我要达到什么目的,我都会遇到相同的错误。

E.G。

PS C:\Windows\system32> winrm get winrm/config
WSManFault
    Message = The client cannot connect to the destination specified in the request. Verify that the service on the dest
ination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running o
n the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the
 destination to analyze and configure the WinRM service: "winrm quickconfig".

Error number:  -2144108526 0x80338012
The client cannot connect to the destination specified in the request. Verify that the service on the destination is run
ning and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destinat
ion, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination t
o analyze and configure the WinRM service: "winrm quickconfig".

PS C:\Windows\system32> winrm enumerate winrm/config/listener
WSManFault
    Message = The client cannot connect to the destination specified in the request. Verify that the service on the dest
ination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running o
n the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the
 destination to analyze and configure the WinRM service: "winrm quickconfig".

Error number:  -2144108526 0x80338012
The client cannot connect to the destination specified in the request. Verify that the service on the destination is run
ning and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destinat
ion, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination t
o analyze and configure the WinRM service: "winrm quickconfig".

我尝试停止并重新启动本地服务中的Windows远程管理服务。 还尝试更改计算机上组策略中的设置。一切都无济于事。 在事件查看器中检查了扩展的分析日志,那里没有更多线索,仅显示上面的错误。

总有可以卸载和重新安装吗?我找不到任何相关信息,可以在线进行配置。我似乎无法恢复到这样的初始设置(例如从另一台计算机上获取)

PS P:\> winrm qc
WinRM is not set up to receive requests on this machine.
The following changes must be made:

Start the WinRM service.
Set the WinRM service type to delayed auto start.

Make these changes [y/n]? n

我当前正在使用: Windows 2008 R2 SP1 Powershell 5.1 服务器上还安装了TFS 2017。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

您知道...我可以为您指出一些有用的链接,但是当我寻找答案时,这总是使我感到烦恼。从提升的Powershell提示中尝试以下操作: Set-NetConnectionProfile -NetworkCategory私有<-这假定您不在域中 Enable-PSRemoting -SkipNetworkProfileCheck -Force <-是的,有点多余 set-service -ServiceName WinRm -StartupType自动 启动服务Winrm

如果您仍然遇到问题,请添加以下内容: winrm设置winrm / config / client'@ {TrustedHosts =“ NameOfYourComputer”}'