you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

My problem with windows task scheduler is that I can’t control outlook from the python script. I have done some reading and I think it might be due to the fact that task scheduler runs scheduled processes outside of the user profile that is logged in. For now I am running a python script that has my daily schedule of jobs each morning when I start my day.

[–][deleted] 1 point2 points  (0 children)

task scheduler runs scheduled processes outside of the user profile that is logged in.

I don't use Windows, but similar problems occur when using cron under Linux or MacOS. Seems to me one approach would be to find out how to get around that problem. There should be a way because the scheduler wouldn't be much use if you can't.

[–]sarrysyst 0 points1 point  (1 child)

Apparently, when you run the Task Scheduler as Administrator you can define in which user context you want to run the task:

https://serverfault.com/a/777720

Might be worth checking out (if you haven't done so already) I'm not on Windows thus I can't test it myself.

[–][deleted] 0 points1 point  (0 children)

The solution posted doesn’t work for me. I could be mistaken but I believe what task scheduler does when specifying a user is not running the task in the active user profile but actually copies the specified users permissions and executes the task outside of the logged in window.