Disable Shutdowns?

New Contributor III

We have a pool of machines that are in a remote site. Had users sitting at the desks with their computers, this week they have moved to a different building and are now remoting in.


A few of the users have developed the habit of shutting down their machines when they are done for the day. First day in the new office, and they shut off their machines on the way out. Neat!



I see there's a setting in the Configuration Packages > Finder > Commands tab that should disable shutdowns from the Finder dropdown menu, but it doesn't appear to do anything. And I'm also looking through many forum posts dated back to 2016, from other people encountering the same thing.


We have this command that we have successfully to disable sleep:



Run Unix command 'defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement SystemPowerSettings -dict SleepDisabled -bool YES'



We have tried the following command to disable Shutdowns, but it isn't successful:


sudo defaults write /Library/Preferences/com.apple.loginwindow ShutDownDisabledWhileLoggedIn -bool true




Can anybody recommend a way to disable shutdowns? 



Hi,  this is a part solution.  you can deploy config profile ( energy saver>Schedule)  which boots up macs in the morning or any other time specified by you.  so even if they shut down their iMacs you can wake them up.   

Honored Contributor II

You can hide the shutdown button from the lock screen, but you cannot remove it from the apple menu as far as I am aware. Macs generally are not very happy with being used remotely, and apple has very few workflows to accommodate remote usage. As @sayr01 mentioned, you can schedule the devices to turn on at a specific time. 


Honestly, I'm impressed you have users who actually shut down devices. 

New Contributor

You can disable the shutdown from the Apple menu with a config profile. 

Config profile>Finder>Commands>uncheck the box next to Shut Down


Config profile>Application and Custom Settings>Upload> com.apple.loginwindow


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">


Give it a few minutes after deployment to reflect in the apple menu.