0

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?

martineau
  • 119,623
  • 25
  • 170
  • 301
psceaa
  • 1
  • are you in company network or domain? –  Aug 27 '20 at 17:57
  • Yes, it is a company domain – psceaa Aug 27 '20 at 18:00
  • so you will never be able to run admin right unless you ask your administrator or you hack the server :-) –  Aug 27 '20 at 18:03
  • Even if my user is part of the Administrator group? – psceaa Aug 27 '20 at 18:14
  • its about your permissions in the AD, not about your target, so it is impossible unless you got the admin pwd. also admin will get an alert so if you are trying smthg bad, i suggest you to forget it! –  Aug 27 '20 at 18:18

0 Answers0