Automox Worklet: Deferred Reboot on macOS Devices

The purpose of this worklet is to detect if a macOS device is pending a reboot and will notify the user to reboot. If the user does not reboot within your given timeframe, the script will force a reboot. If the macOS device is at the login window (no user logged in), the device will reboot immediately with no notification.

Example notifications:

Reboot now or defer notification

Reboot now or defer notification

The Reboot Now button does just that, it reboots immediately.

The Later button will close the notification and redisplay again based on what you have set (below).

Deferred Reboot on macOS: Evaluation and Remediation Code

To create this Worklet, use the evaluation and remediation code scripts located in the original posting on the Automox Alive community. You can set the following options in the Remediation script:

  • title - The title of the notification
  • message - The message content (use %TIME% in your message to display the time left in minutes
  • forceRebootIn - The amount of minutes until the macOS device is force rebooted
  • notifyInterval - Show the above notification every X minutes until a reboot occurs
  • notifyTimeout - How long the above notification shows on the screen before closing and assuming a deferral
  • iconFile - Upload a .icns file to the worklet and specify its name here

Tips for Creating an Automox Worklet

Before deploying an Automox Worklet to the production environment, we suggest testing this on a few devices to confirm its accuracy. If you have any questions, please contact our support team for technical assistance at support@automox.com.

For step-by-step instructions on creating the Worklet, see our user documentation: Create a Worklet.


About Automox Automated Patch Management

Facing growing threats and a rapidly expanding attack surface, understaffed and alert-fatigued organizations need more efficient ways to eliminate their exposure to vulnerabilities. Automox is a modern cyber hygiene platform that closes the aperture of attack by more than 80% with just half the effort of traditional solutions.

Cloud-native and globally available, Automox enforces OS & third-party patch management, security configurations, and custom scripting across Windows, Mac, and Linux from a single intuitive console. IT and SecOps can quickly gain control and share visibility of on-prem, remote and virtual endpoints without the need to deploy costly infrastructure.

Experience modern, cloud-native patch management today with a 15-day free trial of Automox and start recapturing more than half the time you're currently spending on managing your attack surface. Automox dramatically reduces corporate risk while raising operational efficiency to deliver best-in-class security outcomes, faster and with fewer resources.