I'm trying to run a python script to kill a process, but I need admin rights. I tried using runas /profile /savecred /user:domain\user "taskkill /f /im myprocess.exe"
but it didn't work. My user has admin rights on the system (windows).
I know the script works, because I have tested it in the Admin CMD window.
Also, I tested the code here but I am asked to run python and I need to bypass this UAC request.
Does anyone know how I can do this?