Category filter

Script to Customize Login Window on Mac

The login window has several settings, including selecting the user login and power options like shutdown, restart, and sleep. Organizations may need to hide the user list or disable the power options on the login page to ensure enterprises’ security. You can remotely execute custom scripts to customize the login window on macOS devices.

Scripting Language – Bash

File extension – .sh


The Sample Scripts provided below are adapted from third-party Open-Source sites.

Display the list of users in the login window

Display the username and password dialog box in the login window

Hide Shutdown icon from the login window

Hide Restart icon from the login window

Hide Sleep icon from the login window

Replace ‘true’ with ‘false’ for enabling shutdown, restart and sleep icons in the login window.

Display a message in the login window

Replace ‘text’ with the required message to be displayed. If the script contains an exclamation mark, it will fail to execute.


  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository