Python subprocess.Popen as different user on Windows

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.

Leave a Comment