Run all available Mac updates

Had this question yesterday about how to just have Mac App Store update everything.

Essentially the command itself is pretty simple: 

softwareupdate --install --all 

REFFERENCE: https://support.apple.com/en-us/HT200113

Having not done a whole lot of Mac scripts (done a few, but not often) I went to putting this into a Kace script.

I wanted to do a Launch A Program step because i like those. I like that you can use the Kace variables in the text boxes with them, which add some more functinality. In a launch a program step for Mac, you have to know where the command lives, like the one above, softwareupdate. 

So, how do you find that out? 

Sure you can hunt and peck around for it, but there's actually a really easy way to find that out (courtesy of a good friend of mine) called the which command from Terminal. Example:

which softwareupdate

Which tells you it's in the /usr/bin directoryAnywho, to run the script from the K1, it will look like this:

Launch a Program...
Directory: /usr/sbin
File: sotwareupdate
Parameters: --install --all

I didn't have any App updates, but i did have actual OS updates, and this did apply it successfully. I've been told that for App updates (like Evernote, Spotify, etc) it prompts for an admin creds, but let me know in the comments what you guys get in your testing.



  • In our experience the -ia command will only do os updates as indicated. App updates we push (currently) via kace as distros or scripts. - Jbr32 5 years ago
    • Great! Thanks for the feedback. that affirms my thoughts. - brucegoose03 5 years ago
  • Some additional handy commands using this binary:

    List available updates w/o actually running them: (you could pipe this as ShellCommandTextReturn custom inventory rule if you wanted to)
    softwareupdate -l

    Enable and disable auto-update schedules:
    softwareupdate --schedule on
    softwareupdate --schedule off - isudothings 5 years ago
This post is locked
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ