I have disabled UAC and running my script in python.
command = "abcd.exe"
subprocess.Popen(command,stdout=subprocess.PIPE,stderr=subprocess.PIPE).communicate()
Also, I set the application abcd.exe
from its property to run as admin.
Then I'm getting the following error:
WindowsError: [Error 740] The requested operation requires elevation
You could try using:
Basically the important part here is
shell=True
; if set to False, then you will get the following error.I believe that the problem is with using subprocess.Popen.
I also think that your question has already been answered here: Request UAC elevation from within a Python script?