How to execute python subprocess.Popen() via "SYSTEM" user in windows

  access-rights, automation, python, shell, windows

I am using python script to start java spring boot web service
Here is my code

import os
import subprocess

subprocess.Popen("java -jar webService.jar", shell=True)

I want this process to run via "SYSTEM" user in windows, is there any proper way to do it.

Source: Windows Questions

LEAVE A COMMENT