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.

 Enjoy!