I want a script that turns off a group of workstations at night and then turns them back on.  I want to set this up on a schedule.  For example, I want a group of workstations to shutdown at 7:00pm and turn back on at 2:00am.
2 Comments   [ + ] Show Comments


  • we set the wake up time in bios and use a script to shutdown only
  • Bear in mind that WOL packets are not routable. The WOL packet gets detected by the NIC and this causes a signal to be sent to the PSU which powers up the computer. As the operating system is not even running at this time, the setting of UAC is entirely irrelevant.
Please log in to comment

Community Chosen Answer

You can't have a script power on a computer, but you can have it shutdown. My KBox came with an example script for doing this but if yours doesn't then you can just call the shutdown -s command and schedule it for the given time. 

To power on systems you can set those settings in the BIOS (like SMal.tmcc suggests). If your systems are configured for Wake on LAN then you can schedule a WOL event in Distribution, Wake-On-LAN, Choose Action, New, Advanced.
Answered 12/18/2014 by: chucksteel
Red Belt

  • Have you noticed if you have to have UAC turned all the way down in order for the Wake on LAN to work?
    • WOL doesn't depend on the operating system so that shouldn't matter. Depending on your network topology the WOL packets might not be making it to your computer, if you're having problems that might be the cause.
Please log in to comment


If your bios supports it can you set it to power up weekdays at 0200. I have used that in the past.
Answered 12/20/2014 by: Badger
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja