Enable Automatic Software Updates in macOS Catalina

ryan_martindale
New Contributor II

Does anyone know of a script that can check this box? The script below works in macOS Mojave, but not macOS Catalina.
ab78bc8ee7e44d4f9f5c2f8aa2ed0c48

!/bin/sh

/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticallyInstallMacOSUpdates -bool true
/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 CriticalUpdateInstall -bool true
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist ConfigDataInstall -bool true
/usr/bin/defaults write /Library/Preferences/com.apple.commerce.plist AutoUpdate -bool true

3 REPLIES 3

ericbenfer
Contributor III

ryan_martindale
New Contributor II

Awesome, thanks!

szultzie
Contributor II

Is there any way to make these updates run in the middle of the night?