Shutting down the computer via the command prompt is one of my favorite tricks! This time, I’ll show you how to schedule a reboot as a task!

Table Of Contents

This is the Fourth Step in the Fresh Computer Series.

Schedule The Task

  1. Navigate to: Control Panel -> Scheduled Tasks -> Add Scheduled Task
    (Alternately, you run this from the Run dialog: control schedtasks)
    Control Panel -> Scheduled Tasks -> Add Scheduled Task
  2. Hit Next in the dialog box that opens.
  3. In the Scheduled Task Wizard, put this in the address bar [1]:
    %SystemRoot%\system32\shutdown.exe
  4. Click Next. Set this to run Daily.
    Set The Task To Run Daily
  5. Click Next. Enter the time and date for the task. Set the Start time for 6:00 AM and Perform the task Every Day.
    Set The Time For The Task To Run
  6. In the next screen, enter in the username and the password for your Windows user account [2].
    Set Your Username And Password
  7. Tick the “Open advanced properties for this task when I click Finish.” checkbox and click the Finish button.
    Open The Advanced Properties
  8. In the advanced settings, look for the Run text field. We need to add a space, then a few switches to the end of the path [3]:
    c:\windows\system32\shutdown.exe -r -f -t 60
    Add These Swithes To The Path: -r -f -t 60
  9. Click the Set password… button (right of the Run as text box with your user name) and add your Windows password [4]
    Enter Your Windows Password

Next, we can proceed to Fresh Computer Series Step Five: Automatically Open Your Browser: Firefox or Internet Explorer.

[1] I had you use the %systemroot% variable just in case you’ve installed Windows in a location other then the default :wink: The actual location for the Shutdown should be:
C:\WINDOWS\system32\shutdown.exe

[2] This user needs to be a System Administrator.

[3] The switches called do the following:

  • -r Reboots the computer
  • -f Forces all running application to close
  • -t Sets a count down time, in seconds. 60 = 60 seconds

If you want to get really fancy, you can put in a comment for the shutdown!
C:\WINDOWS\system32\shutdown.exe -r -f -t 60 -c "The computer is shutting down! You can abort by running this command from the Run dialog: shutdown -a"
The Shutdown Count Down Dialog

[4]Even though you put in your password in the sixth step, you have to type it again.