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

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.
5 answers Last reply
More about scheduled reboot task task scheduler
  1. If it has sutdown, you should see a mutlitude of services shutting down, then restarting. Also, I think you will see a event that reads:

    Shutdown
    Reason: <give some reason here.>

    Make sure it is run as administrator.
  2. Do you happen to know what that event number would be? I mean for a shutdown event.

    And I am in the Administrator's group. I am running it as myself.
  3. I believe it's events 1074 and 1076. One is an unexpected shutdown and the other is a normal shutdown. I can't remember which number belongs to which.
  4. 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.
  5. 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.
Ask a new question

Read More

Configuration Shutdown Servers Windows XP