Date created: Sunday, June 19, 2011 11:36:49 AM. Last modified: Monday, January 25, 2021 2:10:20 PM
Update from SUS Now
This is a little script I wrote and pushed out to some 10.5 iMac clients and was then able to call it on all the clients to force them to update from a 10.5 Software Update Server straight away;
defaults write com.apple.SoftwareUpdate CatalogURL "http://servername:8088/" defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL "http://servername:8088/" sudo softwareupdate -i -a & osascript -e 'tell app "System Events" to display dialog "Please restart you computer when you get a moment or have finished working to install new software updates." buttons "OK" default button 1 with title "Restart Please" with icon stop'
'osascript' is called so we can use AppleScript to push a little notification to the screen which is handy. This was useful however I wouldn't really want to update machines if they were in use, this would normally happen in an out-of-hours update window by pushing the 'softwareupdate -i -a' command out to all client machines over SSH (didn't have ARD).
Previous page: TimeMachine Sparsebundle
Next page: Which AD DC?