gpt4 book ai didi

c# - Windows 服务给出描述 :

转载 作者:太空狗 更新时间:2023-10-29 17:33:20 25 4
gpt4 key购买 nike

我厌倦了通过注册表卸载禁用的 Windows 服务它已从注册表中删除,但仍显示在 Services.msc 中与

Description: Failed to read description error code 2

最佳答案

直觉/你是如何到达那里的 -

我假设您执行了其中一个或两个操作以导致出现此错误消息。a.通过 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services 从注册表中手动删除了 key ,并从这里删除了服务)

b.This service was in "automatic"start - 所以删除服务在某种程度上误导了"starting automatically"- 因此产生了这个代码 Failed to read description error code 2 。原因如下 - 您应该在执行此操作之前停止该服务,或将其更改为“手动启动”。

如何修复它以及对我有用的方法 -

[1]在管理员模式下进入cmd提示符(意思是选择cmd -> “以管理员身份运行”)

你应该在 "C:/windows/system32/" [如果你处于管理员模式,这应该是默认的,如上所述]输入 -> sfc/scannow在此之后扫描将开始并且将出现以下日志 --

Beginning system scan. This process will take some time.

Beginning verification phase of system scan. Verification 100% complete. Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log

The system file repair changes will take effect after the next reboot.

[2] 最后重启你的系统!并且该服务将不再出现在 services.msc 中。

关于c# - Windows 服务给出描述 : <Failed to read description error code 2>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13153214/

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