Skip to main content
Question

Disable iTunes check for updates

  • November 22, 2013
  • 6 replies
  • 22 views

Forum|alt.badge.img+9
  • Valued Contributor

There isn't a managed preference for this so I put the following in a login script. Here it is in case it helps anyone. Watch the word wrap

# Get user logged into console and put into variable "user"
user=ls -l /dev/console | cut -d " " -f 4
##
# Set iTunes to never check for updates
##
chown root:wheel /Users/$user/Library/Preferences/com.apple.iTunes.plist
defaults read /Users/$user/Library/Preferences/com.apple.iTunes.plist pref:130:Preferences | awk '{$15822 = "00010101"; $15813 = "00020000"; print}' | cut -d "<" -f2 | cut -d ">" -f1 | sed 's/ //g' > /tmp/1234.txt
a=cat /tmp/1234.txt

echo "defaults write /Users/$user/Library/Preferences/com.apple.iTunes.plist pref:130:Preferences -data $a" > /tmp/1234.txt
chmod +x /tmp/1234.txt
/tmp/1234.txt
rm /tmp/1234.txt
chown $user:staff /Users/$user/Library/Preferences/com.apple.iTunes.plist

6 replies

Forum|alt.badge.img+13
  • Contributor
  • November 25, 2013

There is a MCX In Casper v8.xx
"Disable iTunes Update Checking"

in v9, you may have to manually create it;
Domain:~/Library/Preferences/com.apple.iTunes
Key: disableCheckForApplicationUpdates
Value (Boolean): True


Forum|alt.badge.img+10
  • New Contributor
  • November 25, 2013

"There isn't a managed preference for this"

Sure there is:

http://support.apple.com/kb/HT3490


Forum|alt.badge.img+9
  • Author
  • Valued Contributor
  • November 25, 2013

Now you guys tell me!

:)


Forum|alt.badge.img+9
  • Author
  • Valued Contributor
  • November 25, 2013

It is interesting that there is a value for it, but when you change the option in iTunes it doesn't create the value in the plist, but rather changes the hex entry in the 150k+ long character string that I have modified above.


chrisdaggett
Forum|alt.badge.img+7
  • Valued Contributor
  • August 16, 2017

Does anyone know if there is an updated method to this?

I tried everything I could find on Jamf Nation and several self cooked ideas but unfortunately none of them are working with 10.12.5


Forum|alt.badge.img+9
  • Author
  • Valued Contributor
  • August 21, 2017

Did you try something like this? Keep in mind, this will also prevent itunes from checking for iOS updates.

# Get user logged into console and put into variable "user"
user=`ls -l /dev/console | cut -d " " -f 4`
sudo -u $user defaults write /Users/$user/Library/Preferences/com.apple.iTunes.plist disableCheckForUpdates -bool true