Windows Scripting
  Home arrow Windows Scripting arrow Page 5 - Taking Control of System Properties, Start...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Taking Control of System Properties, Startup, and Shutdown
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2007-02-01

    Table of Contents:
  • Taking Control of System Properties, Startup, and Shutdown
  • 6.14 Disabling Error Reporting
  • 6.15 Creating Environment Variables
  • 6.16 Creating a Reboot or Shutdown Shortcut
  • 6.17 Scheduling a Reboot
  • 6.18 Speeding Up System Startup

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Taking Control of System Properties, Startup, and Shutdown - 6.17 Scheduling a Reboot


    (Page 5 of 6 )

    Problem

    You want reboot your PC automatically, on a schedule that you specify.

    Solution

    Using a graphical user interface

    1. Create a shortcut to reboot your PC, as explained in Recipe 6.16. Use this syntax for creating it:

       
      shutdown –r –t 01 –c "Rebooting your PC"
    2. From the Control Panel, open the Scheduled Tasks applet.
    3. Double-click Add Scheduled Task.
    4. Click Next.
    5. In the screen that appears, click the Browse button, browse to C:\Windows\System32 and select shutdown.exe.
    6. Type a name for the task (such as Reboot), select the frequency in which to run it, and click Next.
    7. Enter the username and password of the user the task should run as and click Next.
    8. If you want to go back and modify any of the settings for the task, check the box beside Open advanced properties and click Finish.

    Discussion

    Some people believe a periodic reboot is required to keep Windows snappy. Indeed, some updates for virus protection and security policies require a reboot to either take effect or poll network resources for updates and policy changes. So it’s a good idea to reboot Windows every once in a while, even if it doesn’t seem as if it’s needed.

    See Also

    Recipe 10.12 for scheduling a task and Recipe 6.16 for creating a reboot or shutdown shortcut

    More Windows Scripting Articles
    More By O'Reilly Media


       · This article is an excerpt from the book "Windows XP Cookbook," published by...
     

    Buy this book now. This article is excerpted from chapter six of the Windows XP Cookbook, written by Robbie Allen and Preston Gralla (O'Reilly; ISBN: 0596007256). Check it out today at your favorite bookstore. Buy this book now.

    WINDOWS SCRIPTING ARTICLES

    - Introducing Two-Way Data Binding using Silve...
    - Silverlight 2.0 Application Development with...
    - Burning Multisession CDs with IMAPI2 in WSH
    - Creating a Silverlight 2.0 Application that ...
    - Burning CDs with the IMAPI2 Control
    - Burning CDs in Windows XP with WSH
    - Advanced Word Object Scripting
    - Reading and Printing Word Documents in WSH
    - Scripting Microsoft Word
    - Using WSH to Catalog MP3 Files
    - Reading MP3 ID3 Tags in WSH
    - A Brief Look at Menus in WPF
    - More Examples of Simplified Image Processing...
    - Completing a WPF To-Do List Application
    - Simplified Image Processing in GDI+





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT