I call two executables from a python script one which needs Administrator privileges and one which does not need them. Is there any way by which I can set the Administrator
I found a nasty workaround
f = open('test.cmd', 'w+') f.write("execute.exe") f.close() os.system("runas /savecred /profile /user:Administrator \"test.cmd\"")
or you can use subprocess