Answer the question
In order to leave comments, you need to log in
How to run an external program as a different Python 3 Windows user?
Tell me, run an external file from a Python script without manual input and any confirmation.
For example, in the script, immediately write Username Password and address to the program, after which the program would start on behalf of this user.
os.system("runas /savecred /user:User 'C:\\test.exe") - not suitable as it requires manual password entry for the user.
I need the script to do everything automatically
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question