Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 907
  • Last Modified:

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?
0
Kasper Katzmann
Asked:
Kasper Katzmann
1 Solution
 
jaynirCommented:
download this where you can set the time to shut down

http://download.chip.eu/en/Chrono-Shutdown-1.12_1176159.html

or
from command line  you can specify time

run>cmd>enter

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

user can stop the shutdown by

shutdown -a

0
 
cookreCommented:
What is your definition of 'idle'?

What constitutes user activity?

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

0
 
Kasper KatzmannAuthor Commented:
jaynir:
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.

cookre:
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.
0
 
LordArokhCommented:
There are couple of ways to accomplish though I haven't tested any of them.

1.Solution
  There is a GPO extension which you can manage power settings. You may want to check this link :
     http://www.energystar.gov/index.cfm?c=power_mgt.pr_power_mgt_ez_gpo

2.Solution
  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.

3.Solution
  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."
 
4.Solution
  Here is a link for a similar qquestion : http://www.experts-exchange.com/Programming/Misc/Q_24555532.html

Cheers,
TK
0
 
cookreCommented:
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?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now