You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何阻止PC2Control进程被taskkill终止后自动重启?

阻止PC2Control进程自动重启

我有一款名为PC2Control的软件,希望在不卸载它的前提下使用taskkill命令终止其进程。执行命令:

taskkill /f /t /im PCControl2Client.exe :: success

成功终止了进程,但仅约1秒后,该进程便自动重启。推测这可能与Windows事件有关。

我尝试了一种循环查杀的方法,但效果并不理想:

while($true)
{
    $find =  tasklist | findstr "PCControl";
    if($find -eq $null)
    {
        Start-Sleep -Seconds 1;
    }
    else
    {
        taskkill /F /IM PCControl2ClientService.exe /T;
        taskkill /F /IM PCControl2ClientUser.exe /T;
        taskkill /F /IM PCControl2Client.exe /T;
    }
}

解决方案

问题根源在于该软件对应的服务配置了恢复选项,可通过以下步骤处理:

  • 找到对应服务:通过Windows搜索栏输入“服务”打开服务管理器,或在PowerShell中执行get-service命令查找与PC2Control相关的服务名称。
  • 禁用服务恢复选项:使用CMD执行以下命令(将<ServiceName>替换为实际找到的服务名称):
SC failure <ServiceName> actions=""/1000/""/1000/""/1000 reset=86400

内容的提问来源于stack exchange,提问作者jiw

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.16 17:15:41