批处理自动禁用某个进程

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、重启计算机,然后在任务管理器中找到这个启动项,设置为禁用

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章