gpt4 book ai didi

windows-services - 如何解决 "The specified service has been marked for deletion"错误

转载 作者:行者123 更新时间:2023-12-03 03:54:21 30 4
gpt4 key购买 nike

我尝试使用 sc delete <service name> 删除 Windows 服务,并遇到以下错误:

[SC] DeleteService FAILED 1072:

The specified service has been marked for deletion.

我已经做了什么:

问题仍然存在。

下一步是什么?

最佳答案

可能有多种原因导致服务卡在“标记为删除”状态。

  1. SysInternals' Process Explorer is opened 。关闭它应该会导致服务自动删除。

  2. Task Manager is opened .

  3. Microsoft Management Console (MMC) is opened 。要确保所有实例都已关闭,请运行 taskkill/F/IM mmc.exe

  4. Services console is opened 。这与上一点相同,因为服务控制台由 MMC 托管。

  5. Event Viewer is opened 。同样,这与第三点相同。

  6. The key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{service name} exists .

  7. Someone else is logged into the server并打开了前面提到的应用程序之一。

  8. 用于调试服务的 Visual Studio 实例已打开。

关于windows-services - 如何解决 "The specified service has been marked for deletion"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20561990/

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