【发布时间】:2018-07-10 13:06:04
【问题描述】:
我正在尝试更改 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".
服务正在运行,防火墙规则设置正确。
无论我要达到什么目的,我都会遇到同样的错误。
例如
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
我目前正在使用: 视窗 2008 R2 SP1 电源外壳 5.1 服务器上也安装了 TFS 2017。
有什么想法吗?
【问题讨论】:
-
您是否设置了任何代理?检查
NETSH WINHTTP SHOW PROXY -
@DarkLite1 这不是配置问题,而是 DNS 的问题。
-
您是否有一个 GPO
“Allow automatic configuration of listeners”,您在其中使用子网表示法(如 x.x.x.x\24)设置了 IPv4 过滤器?在这种情况下,这可能是您的解决方案:stackoftech.com/2015/08/02/…
标签: powershell winrm