update iTunes with policy and Execute command

arnaud_univlorr
New Contributor II

Hello,
I'm on JSS 9.92
I try to update some iMac (10.9.5) with execute commands in "Files and Processes":
sudo softwareupdate --install iTunesX-12.4.1

The policy is executed (status completed) but the update is always available in softwareupdate -l

What's wrong ?
Thanks for helping...
c152b44bb8114faeab4e8b1bdd8d8c4b

1 ACCEPTED SOLUTION

Taylor_Armstron
Valued Contributor

"What he said".

Also easier to simplify the syntax and just use "-i". This is a straight copy/paste out of my policy to do the exact same thing you're trying:

softwareupdate -i iTunesXPatch-12.4

Sudo is always going to expect a password as the next argument.

View solution in original post

3 REPLIES 3

scottb
Honored Contributor

Dump the "sudo". Try again.

Just ran this OK:

softwareupdate -i iTunesX-12.4.1

Taylor_Armstron
Valued Contributor

"What he said".

Also easier to simplify the syntax and just use "-i". This is a straight copy/paste out of my policy to do the exact same thing you're trying:

softwareupdate -i iTunesXPatch-12.4

Sudo is always going to expect a password as the next argument.

arnaud_univlorr
New Contributor II

Yep, it's ok with just :

softwareupdate -i iTunesXPatch-12.4.1

I thought I already tested that.
Thanks ! :-)