I've been trying to find a way to stop a process from starting using a batch file. So far I've had no success.
I know I can use taskkill
to kill a process that's already running, but I want to stop it from starting in the first place.
I'd appreciate any help.
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\procexp64.exe" /v Debugger /t REG_SZ "null"
This will prevent the process from starting.