Shutdown of domain computers at specified time

I have about 100 XP computers in one domain.

I would like to enable the ability to let the computers automaticaly shutdown after 6PM if they have been idle for 1 hour or more. At the same time, I would like to give the users the ability to cancel the shutdown process within a short period of time.

Any good ideas? Can it be done with a script. Are there any freeware tools that can manage it?
Kasper KatzmannSeniorkonsulentAsked:
Who is Participating?
There are couple of ways to accomplish though I haven't tested any of them.

  There is a GPO extension which you can manage power settings. You may want to check this link :

  You can deploy a scheduled task for "shutdown.exe" and configure to start as "WHEN IDLE for 60. min". But in this case user will not be informed or, user will not be able cancel shutdown.

  a.Create a VBS script which will inform user before shutting down.
  b.Create a scheduled task for this script which will be triggered "WHEN IDLE for 60 min."
  Here is a link for a similar qquestion :

download this where you can set the time to shut down

from command line  you can specify time


shutdown -s -t 20 (in 20 seconds computer will shutdown)

user can stop the shutdown by

shutdown -a

What is your definition of 'idle'?

What constitutes user activity?

Are these file servers, web servers,database servers, application servers, a mix?

Kasper KatzmannSeniorkonsulentAuthor Commented:
Well that doesn't really do it. Chrono doeasn't check for idle time and to do it manually is clearly not the way to go.

In this case I would define "idle" as when there is no user activity on the computer and activity as when there is user activity.

No they are XP computers acting as client machines.
In that case, it's easy enough to detect mouse and keyboard activity.

But that still leaves the often thorny question about disk activity.

What if a user has gone out to dinner while a full virus scan is running, or a d-frag,
or a disk backup, or a large download from a slow site?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.