/build/static/layout/Breadcrumb_cap_w.png

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

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 - SMal.tmcc 9 years ago
  • 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. - EdT 9 years ago

Answers (2)

Posted by: chucksteel 9 years ago
Red Belt
1
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.

Comments:
  • Have you noticed if you have to have UAC turned all the way down in order for the Wake on LAN to work? - tsienkiewicz@ldirx.com 9 years ago
    • 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. - chucksteel 9 years ago
Posted by: Badger 9 years ago
Red Belt
0
If your bios supports it can you set it to power up weekdays at 0200. I have used that in the past.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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