Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.
Posted: by jake
Product: Mac OS X
Downloads: 958
Download

Synopsis

sudo timedForcedShutdown.sh
sudo timedForcedShutdown.sh <mountPoint> <computerName> <currentUsername> <minutesN>

<shutdownAction> <notificationMessage> <shutdownPhrase> <postponeAlert>

Description

This script will help to enforce a mandatory reboot or shut down. If no console user is logged in, the script will execute the command stored in the $shutdownAction variable. If a console user is logged in, a dialog is displayed informing the user of the number of minutes until shutdown followed by a configurable message stored in $notificationMessage. The dialog contains two buttons. Clicking the "Postpone" button will cancel shutdown/reboot. Clicking the "Shut Down" button will execute the command stored in the $shutdownAction variable.

Preview

Generating Preview...