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
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"
From the Control Panel, open the Scheduled Tasks applet.
Double-click Add Scheduled Task.
Click Next.
In the screen that appears, click the Browse button, browse to C:\Windows\System32 and select shutdown.exe.
Type a name for the task (such as Reboot), select the frequency in which to run it, and click Next.
Enter the username and password of the user the task should run as and click Next.
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
Next: 6.18 Speeding Up System Startup >>
More Windows Scripting Articles
More By O'Reilly Media
|
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.
|
|