I am not sure if you can do this with the standard python libraries. However, the pywin32 package has a win32process.CreateProcessAsUser function which may be what you need.
More Related Contents:
- How do I hide the console when I use os.system() or subprocess.call()?
- Popen waiting for child process even when the immediate child has terminated
- Python: how to kill child process(es) when parent dies?
- Run Process and Don’t Wait
- Popen with conflicting executable/path
- subprocess: deleting child processes in Windows
- Using subprocess to run Python script on Windows
- How do I get all of the output from my .exe using subprocess and Popen?
- What’s the best way to duplicate fork() in windows?
- Cross-platform subprocess with hidden window
- Python running as Windows Service: OSError: [WinError 6] The handle is invalid
- Run process as admin with subprocess.run in python
- ‘^’ is ignored by Python – how to escape ‘^’ character in Popen Windows?
- How do I eliminate Windows consoles from spawned processes in Python (2.7)? [duplicate]
- Run multiple programs sequentially in one Windows command prompt?
- Launch IPython notebook with selected browser
- Sending ^C to Python subprocess objects on Windows
- Execute Commands Sequentially in Python?
- “python” not recognized as a command
- Getting MAC Address
- Which is the easiest way to simulate keyboard and mouse on Python?
- Blocking and Non Blocking subprocess calls
- Is there a way to list all the available Windows’ drives?
- Python Window Activation
- Using Python, how can I access a shared folder on windows network?
- python ctypes issue on different OSes
- link several Popen commands with pipes
- tkinter.TclError: image “pyimage3” doesn’t exist
- real time subprocess.Popen via stdout and PIPE
- Detecting computer/program shutdown in Python?