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

WinRM service does not start

· 52CE 我爱测

Describes the issue in which the Windows Remote Manager service doesn't start after you uninstall WinRM 2.0.

This article provides a resolution for the issue that Windows Remote Manager (WinRM) service doesn't start after you uninstall WinRM 2.0.

Original KB number:   974504

Symptoms

You uninstall Windows Remote Manager 2.0 (WinRM) from a computer that is running Windows Server 2008 or Windows Vista. When you try to start the WinRM service by using the net start winrm command, the WinRM service doesn't start, and you receive an "Access Denied" error.

Cause

This issue occurs when you uninstall WinRM 2.0, and there was an existing WinRM listener on port 5985.

Resolution

To resolve this issue, use one of the following methods.

Restore the WinRM configuration

To restore the WinRM configuration to its default state, follow these steps:

  1. Open a Command Prompt window.

  2. At the command prompt, type the following command, and then press ENTER:

    winrm quickconfig  
    

Delete the WinRM listener on port 5985

  1. Open a Command Prompt window.

  2. At the command prompt, type the following command, and then press ENTER:

    winrm enumerate winrm/config/listener  
    

    It enumerates all listeners that WinRM currently uses.

  3. Locate the listener that has the following parameters and values:

    • Port=5985
    • Transport=HTTP
  4. Note the value that is listed for the listener's Address parameter.

  5. Type the following command, and then press ENTER:
    winrm delete winrm/config/Listener?Address= Address +Transport=HTTP
    In this command, the Address placeholder is the value that you noted in step 4.

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 Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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