Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On Windows 7, is there a way to see a log of scheduled tasks?

share|improve this question
add comment

3 Answers

The Scheduled Tasks itself provide detailed information on when a task will run and when it ran.

The Event Logs might inform you with warnings and errors when somenthing goes wrong,
you can see those in the Event Viewer.

The log of the Scheduled Tasks can also be read in the following location:

C:\Windows\Tasks\SchedLgU.txt

This file would contain the same detailed information as said before but you can go back in time, please note that this does not show warnings and errors with detailed information as those go to the event log.

share|improve this answer
add comment

Sorry I can't speak to Windows 7, but on Windows XP: Start → Settings → Control Panel, then right-click on Scheduled Tasks and select Open. In the menu for the Scheduled Tasks list that appears, select Advanced → View log. The file it opens is C:\WINDOWS\SchedLgU.txt. On Windows XP, that file contains Unicode text, so not every editor will show it properly - but Notepad works fine.

There should be something similar in Win7.

share|improve this answer
add comment

The issue with the SchedLgU.txt file is that it is always open and most editors will not display it at all. Using the type command will work but only if the task I want to view has not rolled off the screen (even increasing the Buffer size on the cmd.exe properties may not be enough). I get around the issue with a ( type SchedLgU.txt > Schtask.txt ) followed by a ( Notepad schtask.txt ). Then a quick search for the " Most recent entry is above this line" and my task is generally right there. This can be used in a batch file and if you have the permissions can be run against remote computers.

-------------------- Sample batch file --------------------

schtasks /RUN /S \\servernamehere /TN "TaskNameHereInsideQuotes"

pause 

type \\servernamehere\c$\windows\tasks\schedlgu.txt > schtask.txt

notepad schtask.txt

Just pause long enough for the task to finish. Another thing I do is to put the average run time in the description area of the scheduled task. Hope this helps.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.