Skip to main content
Question

Script to disable automatic updates


Forum|alt.badge.img+3

We are looking to push out a script to disable automatic updates on Apples. Does anyone have a step by step walkthrough on how to do this? If not, does anyone have one they already use that we can take a look at?

Thank you.

Forum|alt.badge.img+7
  • Contributor
  • April 9, 2012

This defaults command should do it:

/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate 'ScheduleFrequency' -int -1

The easy thing to do would be to create a policy that simply runs that command.


Forum|alt.badge.img+20
  • Valued Contributor
  • April 9, 2012

You can set a Managed Preference through the JSS.Just goto Managed Preferences -> Create from Template -> Search for com.apple.SoftwareUpdate and follow the instructions provided to set it up.


Forum|alt.badge.img+3
  • New Contributor
  • April 12, 2012

We have decided to post push a script out that will force all clients to hit the update server instead.
This is what we need pushed out.

defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://xserve02.wbtla.net:8088/index.sucatalog

Can someone help me by letting me know how to get this script to run in JAMF? We are rookies when it comes to scripting.


Forum|alt.badge.img+3
  • New Contributor
  • April 12, 2012

We have decided to post push a script out that will force all clients to hit the update server instead.
This is what we need pushed out.

defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL http://xserve02.wbtla.net:8088/index.sucatalog

Can someone help me by letting me know how to get this script to run in JAMF? We are rookies when it comes to scripting.


stevewood
Forum|alt.badge.img+35
  • Employee
  • April 12, 2012

Simplest way would be to create a policy set to run every15, a frequency of once a week (or once a day if you want), and on the Advanced tab of the policy, place that command in the Run box.

No need to write an entire script for that.


bentoms
Forum|alt.badge.img+35
  • Legendary Contributor
  • April 12, 2012

Or add the sus to your servers from within the JSS & push out that way. (sorry not at comp so short reply).


bentoms
Forum|alt.badge.img+35
  • Legendary Contributor
  • April 12, 2012

Page 100 of the admin guide advises how to add a Apple Software Update Servers.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings