Re: Use Windows Scheduler to switch off PC

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Turk" <kft_icq@xxxxxxxxxxxxx> wrote in message
news:eWrIf5TtFHA.3640@xxxxxxxxxxxxxxxxxxxxxxx
> Dear all,
>
> How can I use the windows scheduler, or by other means, to switch off my
> PC
> automatically at midnight daily?
> thank....

There is a command line utility called shutdown. I forget whether its
bundled with XP, but if you haven't got it then google for it.

Shutdown -s -f

will force the pc to shutdown. I think it gives you a default warning of 20
seconds, but you can control that via command line switches.

To shut windows down at midnight using the task scheduler, create a new task
that runs shutdown (with the appropriate command line flags) every day at
midnight. That should be it.

I use a similar system to shutdown my children's pc when they leave it on
unattended. In my case I shut the pc down (again using shutdown and via the
task scheduler) when the pc has been idle for an hour.

Hope this helps,

Brian.

--
www.cryer.co.uk/brian


.



Relevant Pages

  • Re: Why Restart & Shutdown Buttons on login screen
    ... Reboot and shutdown allowed before login for any ... And they Believe that the software switch is being hit mostly out of accident or forgetfulness. ... it is rude to make the next user wait for the machine to power up. ... the computer lab wants to keep itself warm with the exhaust from the computers. ...
    (Fedora)
  • Re: shut down
    ... When responding to posts, please "Reply to Group" via your newsreader so ... Newsgroups: microsoft.public.windowsxp.hardware ... for example this shutdown row: ... shutdown.exe directly for more information about the switch. ...
    (microsoft.public.windowsxp.hardware)
  • Re: How do I run a batch file when a server reboots?
    ... Scheduler to invoke a batch file with two commands inside: ... what ever reason the Shutdown fails and the server doesn't reboot. ... I'm quite aware of the syntax for the shutdown command. ...
    (microsoft.public.windows.server.scripting)
  • RE: Scheduled Reboot
    ... Thanks Jack. ... I created a batch file with an AT job to run shutdown - ... Scheduler, any AT jobs get converted to scheduled tasks ... >| Subject: RE: Scheduled Reboot ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Switch-off problem
    ... switch itself off when I do shutdown -h now. ... - I try to umount the remote usb drive -- this cannot be done. ... but fails, and then instead of skipping this step, just hangs. ...
    (Debian-User)