automatically shut down computer two hours after it's turned on

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

Possible to configure an XP Pro computer so it'd shut down two
hours after it's turned on?
 
John Smith wrote:
> Possible to configure an XP Pro computer so it'd shut down two
> hours after it's turned on?


Set a scheduled task...

You could run a scheduled task at startup to create a second scheduled task
that would utilize the built-in shutdown command in 120 minutes from the
creation of the task...

I am sure there are more elegant ways.

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
 
"John Smith" <jsmith@company.com> wrote in message
news:eKINaO2SIHA.1204@TK2MSFTNGP03.phx.gbl...
> Possible to configure an XP Pro computer so it'd shut down two
> hours after it's turned on?


Create a scheduled task that gets invoked at boot time.
It should run this batch file:

@echo off
ping localhost -n 7200 > nul
shutdown -s -f
 
"John Smith" <jsmith@company.com> wrote in message
news:eKINaO2SIHA.1204@TK2MSFTNGP03.phx.gbl...
> Possible to configure an XP Pro computer so it'd shut down two
> hours after it's turned on?


At second thoughts - here is a simpler batch file:

@echo off
shutdown -s -t 7200
 
Back
Top