Scheduling Mac to shutdown and start up
Hello everyone!
I work in a college. We have around 40 Macs in two classrooms. One room of Mac studios and another with iMacs. All our Macs have been updated to Sonoma.
Previously to Sonoma and Ventura, all our Macs were scheduled to shut down at 18:00, and start up at 08:00. This was very useful to have in a college considering some students forget to log out and some shut down their Macs rather than logging out. The shutdown was helpful and would give us fresh Macs every morning, not having to go around every day doing it all manually.
Since we've updated our systems, of course as many are aware, the shut down and startup schedules were wiped since there is no longer an option to do it via system settings.
I had a good look online and found apple giving a solution which is to use terminal.
I managed to prepare two codes which I used on every single Mac :
sudo pmset repeat shutdown MTWRFSU 18:00:00
sudo pmset repeat poweron MTWRFSU 08:00:00
This is amazing as I was able to save them on a usb and just copy and paste on all 40 Macs.
Soon one problem I've realised, and also checking via : pmset -g sched
is that the Macs are only able to register one command only.
To clarify, if I set the shutdown schedule code, and then follow it with the startup code, the startup code seems to wipe the shutdown code. and the other way round.
So in other words the Macs are only able to either start up on schedule, or shutdown on schedule, not both.
For the time being I resorted to a restart code : sudo pmset repeat restart MTWRFSU 06:00:00
to at least log everyone out who forgot to the night before.
It did the trick for now, but unfortunately it's not perfect. We would definitely benefit from having a shutdown and startup schedule on a daily basis. For like I said, reset purposes, and also less power consumption.
Could someone advise me on any options, or maybe my codes are wrong? Maybe there's a schedule that can be created for both commands?
Your help and advice would really be appreciated.
iMac 27″, macOS 14.1