I\'ve managed to get the cmd being opened by python. However, using runas administrator comes with a password check before cmd.exe is executed.
I\'m using this to op
Although not an answer to your question, this can be a solution to your problem. Use psexec instead of runas. You can run it like this:
psexec -u user -p password cmd
(or run it from Python using subprocess.Popen or something else)
subprocess.Popen