Disable iTunes check for updates

MrP
Contributor III

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 6

Kumarasinghe
Valued Contributor

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

gregneagle
Valued Contributor

"There isn't a managed preference for this"

Sure there is:

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

MrP
Contributor III

Now you guys tell me!

:)

MrP
Contributor III

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
Contributor II

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

MrP
Contributor III

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