Posted on 02-12-2015 03:03 PM
I wrote a couple of scripts to ensure my managed macs were getting apple critical updates for XProtect and Gatekeeper.
It is a set of attribute and policy script which handles the update and also ensuring the needed settings are set.
https://jumpt.wordpress.com/2015/02/12/enforcing-critical-osx-system-updates-via-casper/
Feedbacks are welcome.
Cheers
Solved! Go to Solution.
Posted on 02-16-2015 01:59 AM
@makander: The key was to ensure security and critical updates were been taken care of.
My script only ensures that the check for automatic updates is enabled but it doesn't do any downloading or installing of neither os X updates or App store apps. Once a week, I have a policy that install all available os X updates.
I have written a piece on how I gracefully accomplish that.
https://jumpt.wordpress.com/2015/02/13/leverage-software-updates-via-casper/
Posted on 02-13-2015 07:41 AM
Thanks! Just tried the EA, worked fine for me.
The only change I would go for would be to use a config profile to set the actual com.apple.SoftwareUpdate keys. Preference caching can get in the way sometimes if you are writing straight into the plist.
Thanks for the code though!
Posted on 02-13-2015 06:06 PM
Thank you for the feedback, I will look into it.
Posted on 02-13-2015 11:57 PM
@davidacland, defaults is cfprefsd aware.. So should be fine as works with preference caching.
Posted on 02-14-2015 01:20 AM
Thanks @bentoms good point.
Posted on 02-14-2015 05:19 AM
Nice one thx
Posted on 02-14-2015 07:05 AM
Thanks @qsodji for this blog post! The importance can't be stressed enough, as we've seen in the past few months if you turn off automatic updates and manage them yourself, XProtect won't get updates. It can be one of the first security tools you can rely on regularly.
Not only is it important to know how to manage these settings this a great demonstration on how to do it with the Casper Suite.
Can we make this required reading in Jumpstarts? :)
Posted on 02-14-2015 07:35 AM
Clarifying question: For critical_status and config_status I am getting
The domain/default pair of (/Library/Preferences/com.apple.SoftwareUpdate, CriticalUpdateInstall)
does not exist
Even though my user does have those updates enabled. After I run Update_enabler.sh then the defaults read works.
Posted on 02-14-2015 07:52 AM
@adamcodega][/url Are you getting this on all reports or just on your machine?
Posted on 02-14-2015 08:05 AM
Just on my machine, I'm testing it on mine before deploying.
com.apple.SoftwareUpdate exists it just did not have the line entry CriticalUpdateInstall
Posted on 02-14-2015 08:11 AM
@adamcodega That's because install system data files and security updates option wasn't checked in System Preferences App Store.
Posted on 02-16-2015 01:41 AM
Does this mean that you're not managing your updates by yourself anymore and that you are using the automatic update function instead?
Edit: Perhaps one way of doing it is to set schedule off and then at a certain time change it to schedule on and run all SW-updates and then turn them off a hour later.
Posted on 02-16-2015 01:59 AM
@makander: The key was to ensure security and critical updates were been taken care of.
My script only ensures that the check for automatic updates is enabled but it doesn't do any downloading or installing of neither os X updates or App store apps. Once a week, I have a policy that install all available os X updates.
I have written a piece on how I gracefully accomplish that.
https://jumpt.wordpress.com/2015/02/13/leverage-software-updates-via-casper/
Posted on 02-16-2015 02:44 AM
@qsodji Alright, but doesn't OS X notify the user that there are available software updates once you change it to "softwareupdate --schedule on"? Or perhaps I am mistaken.
Posted on 02-16-2015 02:46 AM
@makander: I believe only when you have the download option also checked.
Posted on 02-16-2015 03:07 AM
@qsodji I just tested in a VM, it does prompt the user with a notification if it's just set to "Automatically check for updates".
That's exactly why I have it set to not automatically check, since I don't want the users to be prompted. As seamless as possible.
Posted on 02-18-2015 07:34 AM
So, bottom line then; if we do want to automatically receive the XProtect updates, than we have to accept Notification Center prompting our users about (other) available updates. Correct?
Posted on 02-18-2015 07:42 AM
If your Macs are pointing at Apple's software update service, or if you're using OS X Server's Software Update service, that's correct. I have a post on this issue available here:
If you're using the latest Reposado to host Apple software updates, that's not necessarily correct:
Posted on 02-18-2015 08:56 AM
@dpertschi Well you can enable only system data files and security updates this way without enabling OS X and app updates.
Posted on 03-03-2015 11:33 AM
@qsodji the extension attribute does not seem to report machines that have the correct setting enabled in System Preferences. As @adamcodega mentioned, CriticalUpdateInstall does not seem to appear in that plist, even though the options are checked as they should be in System Preferences.
Is there something I am missing?
Posted on 03-03-2015 11:43 AM
Check softwareupdate.plist in /Library and ~/Library
Posted on 03-09-2016 10:38 AM
@qsodji Wow this is terrific, exactly what I need to implement at our org. Running into an issue where all my machines are reporting as "disabled" even though they are enabled. Looking through the script I see CriticalUpdateInstall and ConfigDataInstall, however I don't see those 2 options in the com.apple.softwareupdate.plist file.
Can you offer some advice?