Force macOS updates

Hello,


I'm looking for a CMD to enable "Install macOS Updates" It must be a command because I want to execute a script. I checked these commands but they don't work.


sudo softwareupdate --schedule off
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticCheckEnabled -bool YES
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticDownload -bool YES
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist ConfigDataInstall -bool YES
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist CriticalUpdateInstall -bool YES
sudo defaults write /Library/Preferences/com.apple.commerce.plist AutoUpdateRestartRequired -bool YES
sudo defaults write /Library/Preferences/com.apple.commerce.plist AutoUpdateRestartRequired -bool NO
sudo defaults write /Library/Preferences/com.apple.commerce.plist AutoUpdate -bool YES


Posted on Mar 6, 2023 1:01 AM

5 replies

Mar 6, 2023 2:11 AM in response to Community User

-michal wrote:

thank you, so this way I can check almost all the changes I made?


Yes, most of them - that is, those that are directly associated with plist files.

That is how I find answers to questions like yours. However, some seem to be stored in some other places, and for those I do not know how to find the answer. Just today, there was some other thread (sorry, can't remember which one), where I hoped a similar trick would work, but I kept making the changes and there was not a plist file that could be associated with it. But when it does, this works nicely.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Force macOS updates

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.