Posted on 04-07-2017 09:21 AM
I want to package my com.apple.SoftwareUpdate.plist and have it installed on other macs.
the plist i want packaged will have Automatically check for updates. AND install system data files and security updates CHECKED !!
I DO NOT WANT Download newly available updates in the background CHECKED. !!!
I am going to use that PACKAGES application to package up the .plist and install it in the /Library/Preferences. location. Will this overwrite the .plist that is currently there?
for 10.10. 10.11. and 10.12 systems
Solved! Go to Solution.
Posted on 04-10-2017 04:53 AM
I run the following as part of my first boot script. as mentioned I also use profiles, but some things like this I use the defaults command as I split the defaults command and profiles evenly:
# Set in house SUS,Munki, and Office Caching Prefs
sudo /usr/bin/defaults write /Library/Preferences/com.apple.appstore restrict-store-softwareupdate-only -bool yes
sudo softwareupdate --schedule on
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool False
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool TRUE
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate ConfigDataInstall -bool TRUE
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall -bool TRUE
This was as per Tim Sutton's article here
add/remove sudo as needed
as always test test and then test
Posted on 04-07-2017 10:54 AM
Have you tried to create a custom configuration profile to manage those settings instead? I haven't tested this out but it might be possible and I think I've heard of other people doing similar stuff.
Posted on 04-07-2017 11:35 AM
Custom Config profile set once would be the way to go.. Alternatively, although people are shying away from it is writing them as defaults write
Rich has a great Blog post describing how to go about doing it with defaults write
Here
Posted on 04-07-2017 11:40 AM
I have a unique solution to a unique problem.
I have a custom plist for a piece of 3rd party software.
Here is how I manage this...
This workflow is simple and effective.
If @rderewianko's suggestion doesn't work for you, perhaps this manual method will...
Good luck and feel free to ask any questions you may have.
Caine Hörr
A reboot a day keeps the admin away!
Posted on 04-07-2017 12:22 PM
I believe it will overwrite the entire client plist. (not just modify it) Using a defaults write command may be a better option.
defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -boolean FALSE
Either way, I’d first test your package or script with one or two clients before deploying in mass.
Posted on 04-07-2017 12:44 PM
@mark.sampers - In my particular example, the 3rd party plist did not exist prior. That being said, I completely agree with you. Testing before rolling into production is key!
Caine Hörr
A reboot a day keeps the admin away!
Posted on 04-07-2017 12:48 PM
right now i'm running a script that does this.
softwareupdate --schedule off
softwareupdate --background-critical --force
Posted on 04-07-2017 12:52 PM
if i create a configuration profile. would i used the. 'custom settings' payload and upload the .plist ?
Posted on 04-08-2017 07:25 PM
if i create a configuration profile. would i used the. 'custom settings' payload and upload the .plist ?
Yes, that is exactly what you'd use. Only because it's not a built in option to manage those settings. Once you get familiar with how to use the Custom settings payload in a Configuration Profile, there is very little you can't add to it to manage things that are not provided out of the box.
Posted on 04-10-2017 04:53 AM
I run the following as part of my first boot script. as mentioned I also use profiles, but some things like this I use the defaults command as I split the defaults command and profiles evenly:
# Set in house SUS,Munki, and Office Caching Prefs
sudo /usr/bin/defaults write /Library/Preferences/com.apple.appstore restrict-store-softwareupdate-only -bool yes
sudo softwareupdate --schedule on
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool False
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool TRUE
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate ConfigDataInstall -bool TRUE
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall -bool TRUE
This was as per Tim Sutton's article here
add/remove sudo as needed
as always test test and then test
Posted on 04-10-2017 08:23 AM
@LSinNY I'm going to test out your default write commands in a script and have it run in my configuration at reboot.
/usr/bin/defaults write /Library/Preferences/com.apple.appstore restrict-store-softwareupdate-only -bool yes
softwareupdate --schedule on
defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool False
defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool TRUE
defaults write /Library/Preferences/com.apple.SoftwareUpdate ConfigDataInstall -bool TRUE
defaults write /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall -bool TRUE
exit $?
Posted on 04-10-2017 08:56 AM
@LSinNY it set the correct App Store updates !! when i run a configuration that installs 10.12.4 and enrolls
Automatically check for updates
&
Install system data files and security updates
but now I wonder what would happen if I run the script on currently enrolled macs ?? I'll let you know. that's next
Posted on 04-24-2017 11:03 AM