I scheduled a reboot task to run in the task scheduler and it did not run but th

cillacil

Distinguished
May 26, 2011
3
0
18,510
Hi Tom,

I scheduled a reboot task using the Windows Task Scheduler (Server 2003). I used a bat file named reboot.bat. This is what is in the file shutdown -r -f

I scheduled the reboot to occur at 1am. When I checked the task sheduler the next morning, the task scheduler reflects that it did not run. But when I checked the event logs, it looks as if it did run because I get this event:

Product: Windows Operating System
ID: 6006
Source: EventLog
Version: 5.2
Symbolic Name: EVENT_EventlogStopped
Message: The Event log service was stopped.

http://go.microsoft.com/fwlink/events.asp

That error indicates that a scheduled reboot did occur.
 
Hi again,

I found event 1074 which immediately preceded event 6009. But the Task Scheduler shows that the task never ran. Why would the Task Sheduler behave that way?

The process winlogon.exe has initiated the restart of

computer CAEI-DEV on behalf of user

CAEI-DEV\priscilla.holmes for the following reason: No

title for this reason could be found
Reason Code: 0x840000ff
Shutdown Type: restart
Comment:

For more information, see Help and Support Center at

http://go.microsoft.com/fwlink/events.asp.
 
Well, it looks as if the restart command was picked up. Is this event preceeded by a bunch of services shutting down and services starting back up again after restart? If not, the restart was aborted for some reason.

I guess the easiest way to diagnose this it to right click on the event, then click run. See if it reboots and if it does, note the order of events in the event log. If it aborts, there should be an error code in the task scheduler under the "last result" column.