Relative Content

Tag Archive for python-3.xvbscripttaskmanager

When running a pythoscript from task manager the cscript command from subprocess.run runs as administrator but does not run with the correct rights

I have a python script. It is set to run in the Microsoft Task Scheduler. When the python scripts runs from cmd or any editor it runs great. When it runs from task manager i get an error from the cscript command run from sub process. It is running as administrator, I have a variable to get the username, but I get an error can not find the file. What on earth am I doing wrong?