I am trying to run a .py script with the Runas command but I get the following error:
193: C:\temp\module1.py is not a valid Win32 application.
My command is:
runas /user:domain\username "C:\temp\module1.py"
I am unsure why this error is being thrown and every SO post I have read has not helped.
What exactly does this message mean and how could I resolve it?
I have no experience with runas, but based on your current command, Try either
runas /user:domain\username python "C:\temp\module1.py"
Or
runas /user:domain\username /path/to/python.exe "C:\temp\module1.py"
Make sure you have installed python.