auto shut down macs with multiple users
Not sure why but my boss wants a script to shut down the macs in a lab with multiple users without using the admin password in Yosemite. I think students should just log off and walk away when done and let the macs go to sleep. They sometimes hang up on restart with the power button and thats another problem but they always work on the second restart, again he wants to have a way of shutting them down regardless of who is still logged in. I tried to make a button that would run a shell script but I keep getting an error, thanks for any help in advance, you folks have helped me so many times I come here at last resort.