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 said:
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.
 
John Smith said:
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 said:
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