How To Automatically Shut Down Your Windows XP Computer

by Bill on December 25, 2007 · 15 comments

in Microsoft Windows

On-Off Switch

It’s been said, “Not owning a computer is the most secure computer.” While that’s true, we need to take steps to keep our computer secure.

As a general rule, I like to shut my computer off when I’m away from it for long periods of time. That includes going out for the day or night, as well as going to sleep. Sometimes it’s hard to remember to shut it off. So in this article I’ll show you a way to shut your Windows XP computer off automatically.

Windows XP comes with a program called shutdown.exe and is located in your system32 folder which typically resides under C:\Windows or the main folder where Windows XP was installed.

So let’s set this up quickly:

1. Go to “Start->Control Panel” and click on “Scheduled Tasks” if you’re in “Classic View”. If you’re not in “Classic View” you are probably in “Category View”. In “Category View” you’ll click on “Performance and Maintenance”. Then click on “Scheduled Tasks”. You’ll see the following screen. Double-click the “Add Scheduled Task” icon.

Scheduled Tasks

2. Click “Next” on the “Schedule Task Wizard” screen (below).

Windows XP Schedule a Task Wizard

3. Click the “Browse” button on the next screen that lists the different applications you can select from (below).

Windows XP Schedule a Task Wizard

4. Browse to C:\Windows\system32 and select the program shutdown.exe (below).

Windows XP Schedule a Task Wizard

5. After selecting shutdown.exe, select “Daily” for “Perform this task:” (below).

Windows XP Schedule a Task Wizard

6. I sleep during the night. That’s why I shut my PC down automagically at 3:00am (below). But, I run some jobs automatically at 1:00am – virus scan and spyware scan, which will be part of a future article. Feel free to adjust this time to fit your schedule.

Windows XP Schedule a Task Wizard

7. You’ll be asked to provide a user name and password that will be used to run this task (below). Warning: If you don’t know your password, that ok. You can add or change it later. If you don’t provide the correct password, you’ll get an error screen after this step. However, you’ll still be able to finish this process.

Windows XP Schedule a Task Wizard

8. At this point you’ve successfully added a new schedule task to run at 3:00am. However, let’s click on the “Open advanced properties fro this task when I click Finish” checkbox and click “Finish” so we can add some command line parameters to shutdown.exe (below).

Windows XP Schedule a Task Wizard

9. You’ll be presented with the following screen.

Windows XP Schedule a Task Wizard

10. Add the following command line parameters as seen below and here – C:\Windows\system32\shutdown.exe -s -t 60 -c “Daily Shutdown” -f. The -s stands for “Shutdown the computer”. The -t 60 stands for “Set timeout for shudown to xx seconds. Feel free to adjust that. You never know when you’re going to be working at 3:00am, so it’s nice to have 60 seconds to prepare for the shutdown. The -c stands “Shutdown comment” which shows up on the screen when the PC is shutting down. And finally the -f stands for “Forces running applications to close without warning”.

Windows XP Schedule a Task Wizard

11. There’s nothing to change on “Schedule” tab. However, feel free to adjust anything that pertains to your work environment or routine.

Windows XP Schedule a Task Wizard

12. I also leave the “Settings” tab alone. Again, change what you need to or experiment what suits your work style.

Windows XP Schedule a Task Wizard

13. This is the final screen (below) that pops up when the task runs. You will have 60 seconds to close applications if you need to.

Windows XP Schedule a Task Wizard

That’s it!! Now you can rest assured your PC is shut down and half way secure while you’re away from your PC.

Enter your email address to receive articles from The Spinning Donut:

If you enjoyed this article, please vote for it on Digg, share it on StumbleUpon or bookmark it on del.icio.us. I appreciate your support!!

AddThis Social Bookmark Button

Related Posts


{ 6 trackbacks }

How To Automatically Protect Your PC From Spyware Using Spybot-Search & Destroy | TheSpinningDonut.com
01.06.08 at 11:18 pm
Protecting Your PC With AVG Anti-Virus Free Software | TheSpinningDonut.com
01.13.08 at 3:44 pm
Two Free Anti-Spyware Programs To Keep Your PC Safe | Learn Technology Online
02.02.08 at 9:24 am
Six Programs To Help Keep Your Computer Safe And Secure | Learn Technology Online
02.21.08 at 12:03 pm
Keep Your PC Safe On The Internet? | Learn Technology Online
03.21.08 at 12:55 am
How To Automatically Shut Down Your Windows Vista Computer | Learn Technology Online
04.10.08 at 1:28 am

{ 9 comments… read them below or add one }

1

Ray 02.24.09 at 11:08 am

I’ve been searching the internet for tutorials on the subject. This one is the most thorough. It even has screen shots. Thanks, Bill!

2

martin 02.28.09 at 10:58 am

hi, Bill,

I just wanted to ask you if the image of the switcher belongs to you, since I´d like to use it for a cd cover… in fact we have an idea of using a switcher for the cover, so we actually plan on taking a photo in high def, but I really like the one you use for your article, so I ask!

I appreciate your time and collaboration,

Best,

Martin

3

thinkweird 03.16.09 at 3:17 am

A good tip.
I use shutdown command directly from a console sometime before I go to bed.

thinkweirds last blog post..Interpreting the Grass-mud Horse

4

Bill Stevens 03.25.09 at 9:25 am

@Martin – You can get these types of images for free at flickr creative commons. I usually give photo credit to the folks who submit those images. It took me a while to implement that on my blog.

5

Bill Stevens 03.25.09 at 9:26 am

Thanks. Sorry for the late replies to everyone.

6

simple simon 04.22.09 at 10:44 am

Bill, great work ! thanks for providing a solid and reliable set of instructions for my quandry. You rock mate !

7

Maurice Arney 06.08.09 at 7:23 am

Just a quick comment on this excellent tutorial. One modification was required for the script to run successfully. Because the comment includes a space, I needed to enclose it in two sets of quotation marks in order for it to run.

Thanks!

8

Az 07.01.09 at 8:50 pm

Thanks, the stuff is excellent !!

9

Bill 07.01.09 at 10:57 pm

@Az: Thanks. :)

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Older post: How To Be A Rockstar Freelancer by Cyan & Collis Ta’eed

Newer post: How To Provide Remote Desktop Support For Family And Friends