PayloadKit

Login Window: Scripts

com.apple.mcxloginscripts

The payload that configures scripts to run at login and logout.

macOS 10.7+
Apple schemacombined

Not available with User Enrollment · Only one instance per profile · macOS: device channel only

Configuration Keys (4)

KeyTypeDescriptionDefaultRange

Login script

arrayAn array of one or more dictionaries of scripts to run at user login time.Default: —Range: 1 – —

Login Script

required
dictA dictionary of login scripts.Default: —Range: —
filenamestring

Name

required
stringThe filename for display purposes.Default: —Range: —

Script

required
dataThe UTF-8 encoded data object representing the executable script.Default: —Range: —

Execute the Mac computer's LoginHook script

booleanIf 'true', the system doesn't execute the login scripts during login.Default: falseRange: —

Logout script

arrayAn array of one or more dictionaries of scripts to run at user logout time.Default: —Range: 1 – —

Logout Script

required
dictA dictionary of login scripts.Default: —Range: —
filenamestring

Name

required
stringThe filename for display purposes.Default: —Range: —

Script

required
dataThe UTF-8 encoded data object representing the executable script.Default: —Range: —

Execute the Mac computer's LogoutHook script

booleanIf 'true', the system doesn't execute the logout scripts during logout.Default: falseRange: —