Windows Tip: Start Your Day With A Fresh Computer, Step Three: Automate Hard Drive Defragmentation Windows Tip: Start Your Day With A Fresh Computer, Step Five-A: Open Your Browser (Firefox)

Windows Tip: Start Your Day With A Fresh Computer, Step Four: Automate A Reboot

Written by Saman Sadeghi on September 13, 2007 Add comments

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.

Start Slide Show with PicLens Lite PicLens
This post is filed in: Technology, Windows Tips And Tricks and has been viewed 1,606 views times.

Windows Tip: Start Your Day With A Fresh Computer, Step Three: Automate Hard Drive Defragmentation Windows Tip: Start Your Day With A Fresh Computer, Step Five-A: Open Your Browser (Firefox)

Megaman Loves These Related Posts:


Megaman
  • Windows Tip: Start Your Day With A Fresh Computer, Conclusion
  • Windows Tip: Start Your Day With A Fresh Computer, Step One: Setup And Update
  • Windows Tip: Start Your Day With A Fresh Computer, Step Three: Automate Hard Drive Defragmentation
  • Windows Tip: Start Your Day With A Fresh Computer, Step Five-B: Open Your Browser (Internet Explorer)
  • Windows Tip: Start Your Day With A Fresh Computer, Step Two: Automate Hard Drive Cleaning


  • RSS feed | Trackback URI

    12 Comments »

    Comment by digitalnomad 2007-09-13 09:59:40

    MyAvatars 0.2

    That’s a good series you got going Saman. Like the way you spell out what you are going to do in this series of posts.

    Comment by Saman Sadeghi 2007-09-13 10:33:34

    MyAvatars 0.2

    Thanks buddy!

    I’ve been reading a great SEO book lately, and it’s super important to use keywords in your post titles - and use the heading class (h2) in the title! Plus, it allows RSS readers to know what their going to read!

    Comment by cottage 2007-09-13 11:04:05

    MyAvatars 0.2

    really?.. h2 not h1?

    Comment by Saman Sadeghi 2007-09-13 11:10:35

    MyAvatars 0.2

    Well, it really depends on your design - I have my site’s name a H1, and the post titles as H2. You should only use 1 H1, but can use many H2 tags.

    Think about the order of importance of your page - also think of each “page” (post) and an individual page and not “just” a blog post, search engines do!

    Comment by cottage 2007-09-13 12:06:21

    MyAvatars 0.2

    really?? only 1 h1.. wow. .i gots some investigating to do!

    Comment by Saman Sadeghi 2007-09-13 12:45:29

    MyAvatars 0.2

    Start by reading The SEO Book - it really has a lot of great info! Ms. Danielle turned me onto it.

    (Comments wont nest below this level)
     
     
     
     
     
     
    Comment by cottage 2007-09-13 11:03:03

    MyAvatars 0.2

    automatic reboot.. wow.. thats a little scary :???:

    Comment by Saman Sadeghi 2007-09-13 11:11:34

    MyAvatars 0.2

    Not at all! I also use it if the computer is doing something and I need to go to bed/work but don’t want the computer running while I’m gone. I allow enough time for the job to complete, then shutdown!

     
     
    Comment by Tech Bold 2007-09-14 03:43:19

    MyAvatars 0.2

    Something to execute on networks… Gotta try this out. :twisted:

    Comment by Saman Sadeghi 2007-09-14 22:38:11

     
     
    MyAvatars 0.2

    [...] Google X Windows Tip: Start Your Day With A Fresh Computer, Step Two: Automate Hard Drive Cleaning Windows Tip: Start Your Day With A Fresh Computer, Step Four: Automate A Reboot [...]

     
     

    Leave a Reply

    Name (required)
    E-mail (required - never shown publicly)
    URI
    Your Comment (smaller size | larger size)
    You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.
    Windows Tip: Start Your Day With A Fresh Computer, Step Three: Automate Hard Drive Defragmentation Windows Tip: Start Your Day With A Fresh Computer, Step Five-A: Open Your Browser (Firefox)