Task Scheduler is not working with option Run wheather user logged on or not in user context

Prateek Jain 0 Reputation points
2025-01-07T19:43:31.8133333+00:00

HI Team,

The task was running since last 5 year.

But after 6th Dec it is not working post server security patched. The task in task scheduler is running with option "Run only when user logged in" . We want details wheather any changes happened in the patches or in the past if yes then why it too effect now not in previous patches.

Task details:

Task is executing batch fine at a paticular time everyday which generate some output and running with user context.(Configue with User Admin account)

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,869 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 34,951 Reputation points
    2025-01-07T22:22:56.5033333+00:00

    Sorry, but I am a little confused with your question.

    The title to your question says that: "not working with option Run wheather user logged on or not"

    And the text of your question has: "The task in task scheduler is running with option Run only when user logged in".

    Does that mean that for the last 5 years you had the task set to "run whether the user is logged on or not", and that stopped working, so you changed the task to "Run only when user logged in" and then it runs?

    I just answered another question today about the task scheduler. Please read through my comments about those 2 options. You may also want to configure capturing stdout and stderr as I describe. It helps troubleshooting when something doesn't work right.

    https://learn.microsoft.com/en-us/answers/questions/2141466/how-to-run-a-task-with-task-scheduler

    I would suggest that you first try to troubleshoot the "not working" problem. If you have not done so already, in the Actions pane, select Enable All Tasks History.

    User's image

    Set the task back to "run whether the user is logged on or not" and then check the task history tab after the scheduled run time. Did the task scheduler attempt to run the task? Do you see a launch failure? Check the Security event log to see if there are any events that reference the account that the task runs as.

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.