for example, to save electricity. Could you make a domain policy that makes a pc go to sleep between the hours of 9 pm and 6 am. You can always turn it back on. It just goes to sleep unless it's being used or it gets woke up.

Thank you.

EDIT: Sorry, they are all Windows machines. XP, Vista, and Windows 7, but mostly XP Pro. Lots of machines.

  • Which OS? Are you only interested in doing this to one or two systems, or a whole bunch of them? – Ƭᴇcʜιᴇ007 Mar 18 '10 at 13:55

I assume you are using Windows, here is a command line that will send the PC to sleep

rundll32 powrprof.dll,SetSuspendState

you could either create a batch file to remotely execute this command on all pc at a certain time using psexec, and then another batch file to send a wol command out when you want them woken up.

Alternatively you could schedule these two functions manually on each machine

  • It's saying task already exists even if it doesn't. – Jürgen Paul Jan 18 '13 at 4:02
  • 1
    *** Warning, this command caused my machine to Hibernate rather than sleep. – Guy Thomas Jan 18 '13 at 10:23

Depends on the OS. For XP, Energy Star has something called EZ GPO to manage power. I believe Vista and Windows 7 have GPOs for this.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.