Login Window: Scripts (com.apple.mcxloginscripts)

com.apple.mcxloginscripts

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

macOS(10.7)
Branch: release

Settings (10)

SettingTypeRequiredDefaultManual InstallSupported OS
loginscripts
loginscripts
An array of one or more dictionaries of scripts to run at user login time.
1 subkey
arrayoptional
Yes
macOS (10.7+)
└─
ScriptsItems
ScriptsItems
A dictionary of login scripts.
2 subkeys
dictionary
Yes
macOS (10.7+)
└─ └─
filename
filename
The filename for display purposes.
stringrequired
Yes
macOS (10.7+)
└─ └─
filedata
filedata
The UTF-8 encoded data object representing the executable script.
datarequired
Yes
macOS (10.7+)
logoutscripts
logoutscripts
An array of one or more dictionaries of scripts to run at user logout time.
1 subkey
arrayoptional
Yes
macOS (10.7+)
└─
ScriptsItems
ScriptsItems
A dictionary of login scripts.
2 subkeys
dictionary
Yes
macOS (10.7+)
└─ └─
filename
filename
The filename for display purposes.
stringrequired
Yes
macOS (10.7+)
└─ └─
filedata
filedata
The UTF-8 encoded data object representing the executable script.
datarequired
Yes
macOS (10.7+)
skipLoginHook
skipLoginHook
If `true`, the system doesn't execute the login scripts during login.
booleanoptionalfalse
Yes
macOS (10.7+)
skipLogoutHook
skipLogoutHook
If `true`, the system doesn't execute the logout scripts during logout.
booleanoptionalfalse
Yes
macOS (10.7+)

Apple MDM & DDM Policy Explorer

Explore the full catalogue of Apple Mobile Device Management (MDM) and Declarative Device Management (DDM) policies for macOS and iOS. Search, filter, and reference policy keys for use with Microsoft Intune, Jamf, or any standards-compliant MDM solution.

Reference: policy categories & common keys

Policy categories

  • Configuration Profile
  • Declarative Configuration
  • Declarative Activation
  • Declarative Asset
  • Declarative Management

Common policy keys

  • com.apple.wifi.managedWi-Fi network configuration
  • com.apple.vpn.managedVPN configuration
  • com.apple.applicationaccessApp and feature restrictions
  • com.apple.security.pkcs1Certificate (PKCS#1) payload
  • com.apple.security.pkcs12Identity certificate (PKCS#12) payload
  • com.apple.security.scepSCEP certificate enrolment
  • com.apple.mail.managedMail account configuration
  • com.apple.eas.accountExchange ActiveSync account
  • com.apple.MCXManaged Client (macOS) preferences
  • com.apple.MCX.FileVault2FileVault 2 disk encryption
  • com.apple.dockmacOS Dock configuration
  • com.apple.screensaverScreensaver configuration
  • com.apple.loginwindowmacOS login window configuration
  • com.apple.systempolicy.managedGatekeeper / system policy
  • com.apple.systempreferencesSystem Preferences pane restrictions
  • com.apple.SoftwareUpdateSoftware update behaviour
  • com.apple.TCC.configuration-profile-policyPrivacy Preferences Policy Control (PPPC)
  • com.apple.notificationsettingsPer-app notification settings
  • com.apple.webcontent-filterWeb content filter
  • com.apple.dnsSettings.managedDNS settings (DoH / DoT)
  • com.apple.relay.managedNetwork relay configuration
  • com.apple.extensiblessoExtensible Single Sign-On
  • com.apple.configuration.passcode.settingsDDM: passcode policy
  • com.apple.configuration.softwareupdate.enforcement.specificDDM: enforced software update
  • com.apple.configuration.services.configuration-filesDDM: service configuration files
  • com.apple.configuration.management.status-subscriptionsDDM: status subscriptions
  • com.apple.activation.simpleDDM: simple activation predicate
  • com.apple.management.organization-infoDDM: organization information