On windows server I need via python code to run an executable/process (such as a notepad \ ps1 script) with other domain user privilages. The credntials are hardcoded in the python script. The script should run remotelly on the server so the password promt is problematic. Is there any way I can open a proccess with known cerentials (user + password) without code interuption?
Asked
Active
Viewed 1,834 times
0
-
2Possible duplicate of [Run child processes as different user from a long running process](https://stackoverflow.com/questions/1770209/run-child-processes-as-different-user-from-a-long-running-process) – hoefling Mar 12 '18 at 08:33
-
1Which OS are you using? – FlyingTeller Mar 12 '18 at 08:35
-
Windows Server 2008 R2 – Bathynomous Giganteus Mar 12 '18 at 14:55