Posted on 10-26-2015 10:40 AM
I'm trying to execute a profile where all of the Macs (15) in our lab, shutdown at 3pm everyday. I have created the profile under Energy Saver to do this, but it isn't working. Before 3pm everyday, all of the Macs go into sleep mode.
I need this because we have dirty power coming into the school at night, and random rooms experience brown outs - I'm not too sure when the power issue will be fixed.
Plus we have (hopefully) El Nino showing up soon, and if we get even the smallest of rain showers, everything starts to trip.
Thanks
Solved! Go to Solution.
Posted on 10-26-2015 11:00 AM
Take a look at this thread, same issue.
https://jamfnation.jamfsoftware.com/discussion.html?id=17113
Posted on 10-26-2015 10:53 AM
I have been looking into this for a while now. It is my belief that the built-in power management isn't sufficient to do what you need to do. I've noticed that if a user stays logged in, it won't shut down. I'm looking into a launch daemon with a script to force shutdown. I'm curious what other people are doing.
Posted on 10-26-2015 11:00 AM
Take a look at this thread, same issue.
https://jamfnation.jamfsoftware.com/discussion.html?id=17113
Posted on 10-26-2015 11:16 AM
I knew I was on the right track! Somehow I missed that discussion. Thanks!
Posted on 10-26-2015 11:20 AM
You could use pmset via command or script. There is a handy tool that was once part of the JAMF resource kit now available here PM Script Builder that makes this easier if you are not familiar with pmset. You can schedule shut down and startup as needed. Use a policy to apply the script created with PM Script Builder.
Posted on 10-26-2015 11:41 AM
Posted on 10-26-2015 11:52 AM
@stevewood missed that part. True can't shutdown with open apps. I guess a launchd that issues a halt.
Posted on 10-26-2015 02:25 PM
hey Guys;
just finished setting this up with caffeinate and a LaunchDaemon shutdown/update script, as @Abdiaziz and @stevewood mentioned.Has been working for the past 3 weeks
LSinNY
(damnyankee-slack)
Posted on 10-26-2015 02:35 PM
Can you not have one policy that uses pmset to schedule a wake for any machines that are still on but asleep and then have a normal Casper time restricted policy with an appropriate time window that has a script that runs something like.
shutdown -h now
Perhaps set it to available offline so it works even whent he JSS is unavailable.