大网数据广告活动
Windows Server 管理

Errors when you run WinRM commands

· 52CE 我爱测

Describes the errors that are triggered when you run various WinRM commands to verify local computer functionality in a Windows Remote Management environment.

This article provides a solution to errors that occur when you run WinRM commands to check local functionality in a Windows Server environment.

Original KB number:   2269634

Symptoms

When you run WinRM commands to check the local functionality on a server in a Windows Server environment, you may receive error messages that resemble the following ones:

winrm e winrm/config/listener
WSManFault Message = The client cannot connect to the destination specified in the requests. Verify that the service on the destination is running and is accepting request. Consult the logs and documentation for the WS-Management service running on 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

winrm id
WSMan Fault
Message = The WinRM client received an HTTP bad request status (400), but the remote service did not include any other information about the cause of the failure. Error number:
-2144108175 0x80338171

winrm quickconfig
WinRM is not set up to receive requests on this machine. The following changes must be made:
Start the WinRM service.
Make these changes [y/n]? y
WinRM has been updated to receive requests.
WinRM service started.

WSManFault Message = The client cannot connect to the destination specified in the requests. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on 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

Cause

This problem may occur if the Window Remote Management service and its listener functionality are broken.

Resolution

To resolve this problem, follow these steps:

  1. Install the latest Windows Remote Management update.

  2. Run the following command to restore the listener configuration:

    winrm invoke Restore winrm/Config
    
  3. Run the following command to perform a default configuration of the Windows Remote Management service and its listener:

    winrm quickconfig
    

Data collection

If you need assistance from Microsoft support, we recommend you collect the information by following the steps mentioned in Gather information by using TSS for User Experience issues.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。