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)
Please log in to answer
Posted by:
chucksteel
9 years ago
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