Sadly, due to the nature of the environment, and the users, our school laptops (Macbook Airs, all) rarely get properly logged out of. The default behavior is to close the lid and quick-rack it as soon as the class is over. Despite numerous education campaigns and trainings by the teachers, as well as myself, the kids simply do not log out of their accounts when they are done. Since the Macbooks are in a pool, and not 1-to-1, this is a problem.
I am hoping I can solve this problem with technology. Specifically, with Jamf + Scripting.
How can I detect a lid close and then trigger a forced-logout script when it is detected?
Worth noting: this is default behavior for Chromebooks. Surely is can be done for Macs as well...
