Scripting Question

How to write a script to shutdown and turn on a workstation on a time schedule?

12/17/2014 2209 views
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.

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.

All Answers

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

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ