Skip to content

Instantly share code, notes, and snippets.

@talkingmoose
Last active December 16, 2025 07:48
Show Gist options
  • Select an option

  • Save talkingmoose/53a131b2324c0e0945a573dfc3f230f4 to your computer and use it in GitHub Desktop.

Select an option

Save talkingmoose/53a131b2324c0e0945a573dfc3f230f4 to your computer and use it in GitHub Desktop.
The /Library/Preferences/com.apple.SoftwareUpdate.plist seems impervious to being managed via configuration profile (at least on macOS Mojave). While not enforced management, add this script to a Jamf policy and run it on a routine basis such as once per week on scoped Macs.
#!/bin/bash
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticCheckEnabled -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticDownload -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticallyInstallMacOSUpdates -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist ConfigDataInstall -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist CriticalUpdateInstall -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.commerce.plist AutoUpdate -bool TRUE
exit 0
@joegoerlich
Copy link

com.apple.SoftwareUpdate is flaged as deprecated by Apple (https://developer.apple.com/documentation/devicemanagement/softwareupdate). Not sure how this affects the App Store setting in com.apple.commerce. I would assume, that the “Install app updates from the App Store” option from the software update UI is now decoupled from the App Store setting. At least, I cannot find anything regarding the App Store at https://github.com/apple/device-management/tree/release/declarative/declarations/configurations.
Can any one please confirm this statement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment