I want to kill a process as Process Hacker does (it can kill NT Authority/SYSTEM processes and processes that requires an extra password to be killed).
I am not sure what kind of black magic it does, apparently it uses another kill function that neither "Task Manager" nor "Process Manager" uses, as they mention here: https://www.bleepingcomputer.com/forums/t/750256/process-hacker-2-vs-nt-authority/
I have tried to also use taskkill /IM <process.exe> /F
from an Administrator cmd, https://superuser.com/questions/1457137/how-can-i-kill-a-process-like-process-hacker-does and also, from a NT Authority / SYSTEM cmd, with: PsExec64.exe -i -s cmd.exe
and also launching a "Task Manager" with SYSTEM with PsExec64.exe -i -s taskmngr.exe
The only thing that works, is Terminating it with Process Hacker.
Now, the thing is, when I terminate it, the process restarts over and over, and I want to keep it dead.
How could I emulate that behavior ?
Regards!