Mac App Store Dock Item Removal

ernstcs
Contributor III

Hello All,

Not sure if anyone else needs to do this, but we'll be removing the Mac
App Store Dock Item from our lab machines when I patch them to 10.6.6.

I'm mostly posting this for anyone who has never had to deal with Apple
just putting whatever they think people need on the Dock after an update,
like the Time Machine Dock Item when that came out.

In the file /Library/Preferences/com.apple.dockfixup.plist you'll see the
following that gets executed per user at their first login since upgrading
(is my understanding):

<key>version</key> <string>10.6.6</string> <key>add-app</key> <array> <dict> <key>path</key> <string>/Applications/App Store.app</string> <key>after</key> <string>begin</string> </dict> </array>

- You can just replace the file with one that has this section removed
- You can script defaults to remove it defaults delete /Library/Preferences/com.apple.dockfixup version
- You can simply delete the file

Granted, there may not be much you can do for the first user that logged
in immediately after the update if they are right there, before a policy
can be run. In labs here it would just work itself out over night when
local homes are wiped out.

Our policy will replace the file and delete the Mac App Store application
from labs.

Have a great day,

Craig E

6 REPLIES 6

Not applicable

WoW!!!
I was just working on this and scratching my head trying to figure out why it was coming back!

Thank you!!

Nick Caro Senior Desktop Support Administrator

ernstcs
Contributor III

You are welcome. Already made it worth posting.

I also added the Dock Item to the JSS so I could remove it from users docks as needed with a policy that way, but you for sure need to do what I posted first.

Craig E

bentoms
Release Candidate Programs Tester

That doesn't seem to be working here :( (but then we're looking at migrating jss to new server as ours is knackered) Interested to know if it's working for others.

Regards,
Ben Toms
IT Support Analyst GREY Group
The Johnson Building, 77 Hatton Garden, London, EC1N 8JS
T: +44 (0) 20-3037-3819 |
Main: +44 (0) 20 3037 3000 | IT Helpdesk: +44 (0) 20 3037 3883

Not applicable

Working very well for me!

# via iPhone

bentoms
Release Candidate Programs Tester

Nvm.. It would help if I selected a group to apply too..

(sleep might stop me from messing up!!)

Regards,
Ben Toms
IT Support Analyst GREY Group
The Johnson Building, 77 Hatton Garden, London, EC1N 8JS
T: +44 (0) 20-3037-3819 |
Main: +44 (0) 20 3037 3000 | IT Helpdesk: +44 (0) 20 3037 3883

golbiga
Contributor III
Contributor III

Just tried out a new image with 10.6.6 and I added /usr/libexec/PlistBuddy -c "delete:add-app" /Library/Preferences/com.apple.dockfixup.plist to my postinstall script, no Mac App Store in the dock.

Allen