批處理自動禁用某個進程

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、重啓計算機,然後在任務管理器中找到這個啓動項,設置爲禁用

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