Shutdown of domain computers at specified time

Posted on 2010-01-06
Last Modified: 2012-06-27
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?
Question by:Kasper Katzmann
    LVL 13

    Expert Comment

    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

    LVL 23

    Expert Comment

    What is your definition of 'idle'?

    What constitutes user activity?

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


    Author Comment

    by:Kasper Katzmann
    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.
    LVL 4

    Accepted Solution

    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 :

    LVL 23

    Expert Comment

    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?

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    isEverywhere  challenge 19 49
    modThree challenge 4 53
    Delete Folder and its contents in a batch file 12 54
    active directory 5 21
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    A short article about a problem I had getting the GPS LocationListener working.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now