批处理自动禁用某个进程

1、执行如下批处理

@echo off
echo Disabling Process...
REM taskkill /F /IM FnHotkeyCapsLKNumLK.exe
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "FnHotkeyCapsLKNumLK" /t REG_SZ /d "C:\Windows\System32\DriverStore\FileRepository\lenovofnandfunctionkeys.inf_amd64_fdde6ecd49c3a98b\FnHotkeyCapsLKNumLK.exe" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "FnHotkeyUtility" /t REG_SZ /d "C:\Windows\System32\DriverStore\FileRepository\lenovofnandfunctionkeys.inf_amd64_fdde6ecd49c3a98b\FnHotkeyUtility.exe" /f
REM taskkill /F /IM FnHotkeyUtility.exe
echo Process Disabled Successfully.
pause

 2、重启计算机,然后在任务管理器中找到这个启动项,设置为禁用

posted @ 2024-03-13 16:39  韩梦芫  阅读(28)  评论(0编辑  收藏  举报