Re: Turn off computer at scheduled time

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Art Sheppard (artshepNOSPAM_at_nvbell.net)
Date: 11/06/04


Date: Sat, 06 Nov 2004 14:49:56 -0800

You need a Batch File Containing the following:
shutdown -s -f
The -f forces any running tasks to close, for all the Shutdown switches open the
Command Prompt Window in the path Start > Programs and click Command Prompt. At the
C:\windows> Prompt enter shutdown /?
Save this batch file with the file extension of Filename.bat. (In notepad you need to
click the file type of all files *.* to save your file as a .bat file.) Open Task
Scheduler and double click add a new task. the Add Task Manager will give you a list
of tasks. Click the Browse Box at the bottom, and point the manager to where you saved
the batch file, and clock OK. To test your batch file, right click the batch file in
the scheduler window, and click run.

Wilson wrote:

> I try it, but it seems does not work. It know the program is executed
> because there is no error message. But the computer is still on, running as
> normal. I had follow you instruction and use the flag -s. Need more help.
>
> Wilson Chu
>
> "Peter Krikelis" wrote:
>
> >
> >
> > "Peter Krikelis" wrote:
> >
> > >
> > >
> > > "Wilson" wrote:
> > >
> > > > I am using Windows XP Pro SP1. Anyone know how I can turn off my computer at
> > > > the time that I want? I know the Schedule Task program that come with the
> > > > Windows can run or end a program at the scheduled time. Can it turn off the
> > > > computer too? Thanks
> > > >
> > > > Wilson Chu
> > >
> > > Wilson,
> > >
> > > You can setup the task scheduler to run the shutdown.exe file with the -r
> > > flag. E.g. shutdown -r.
> > >
> > > The shutdown file can be found in the $Winpath/system32 folder.
> > >
> > > Hope this helps.
> > >
> > > Pete.
> >
> > Luke,
> >
> > -r flag restarts, -s flag shuts down the computer. Sorry for the confusion.
> >
> > Pete.



Relevant Pages

  • Auto log out possible?
    ... you can logout from a command prompt, with "shutdown" I ... Which means you can create a batch file to do it, ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Scheduling a Reboot
    ... I've read that and I am using the right syntax! ... >> What command would I use in a shutdown.bat file that would shutdown ... >> over in the command prompt, ... > Then you should be able to make a Batch file with the correct Syntax. ...
    (microsoft.public.windows.server.sbs)
  • Re: Improved solution for the slow Exchange2003 shutdown problem
    ... timeout on exchange, hence it not being supported on a non SBS machine. ... > to do it and end up waiting the 15 minutes for the shutdown. ... > 1) Create a batch file named Exchange_Shutdown.bat with this one line " ... > Shutdown script icon. ...
    (microsoft.public.windows.server.sbs)
  • Re: Need help with a "Shutdown" Script...
    ... appropriate thing here is to run the shutdown batch file and give ... Task" executing this batch file if the computer has been idling for 45 ...
    (microsoft.public.windowsxp.general)
  • Re: Boot Win XP Home too long
    ... Open a command prompt and type or paste: ... >> I don't honestly know of a way to make the batch file run at shutdown ... >> to try to run it at boot. ...
    (microsoft.public.windowsxp.perform_maintain)