question

OrmondStock-4054 avatar image
0 Votes"
OrmondStock-4054 asked LimitlessTechnology-2700 answered

Server 2016 Task Scheduler lost tasks

Running Windows Server 2016. I have a number of scheduled tasks which have run successfully for years. Then a few weeks ago they all vanished. Nothing in the event log I could see, the sa.dat file was empty. I put it down to a mystery and created the tasks again.
Now this morning they are all gone again, with no trace.
Does anyone have any ideas?

windows-server
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered

Any files in windows\System32\Tasks ?


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MotoX80 avatar image
0 Votes"
MotoX80 answered

Check the Microsoft-Windows-TaskScheduler/Operational event log for event ID 141.

My pc is Win10, but I would expect 2016 to have the same log.



131373-capture.jpg



capture.jpg (117.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello,

You can try to look for the tasks as they seem like they have been "forgotten" somehow. Run Command Prompt on the server and type:

schtasks /query /TN "custom task name goes here"

or if you can't remember a custom task name to test, just use:

schtasks /query

Scroll through the results to see if your task(s) are listed.

It's also worth checking to see if the task(s) have corresponding files in:

%WINDIR%\System32\Tasks

Some thoughts: if you create a new task while still in the 'Task Scheduler (local)' node it might disappear, but if you select a relevant node first this should not happen.

I hope this will help you!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.