Demoting a subprocess call from running as admin

  admin, powershell, python, subprocess, windows

I’m running a python script through powershell:

python.exe script.py

powershell is configured to run as Admin on the machine (Windows). Inside the script I’m trying to run subprocess:

test_process = subprocess.Popen("subscript.exe")

What I need for the "subscript.exe" process (subprocess) not to run as an admin on the machine, while not stopping the execution of the original script.

Source: Windows Questions

LEAVE A COMMENT