Remove of Dock Items

rtarson
New Contributor II

Hello,

 

I am working on standardizing and limiting distraction of our end users by removing most of the Apple Bloatware from the dock. Which I have limited access to what apps can be used so they are useless being on the dock too. I'm stuck on getting some default apps removed from the Dock. So in the management setting I have set dock items with their path for example: (file://localhost/Applications/FaceTime.app/)

Here a list of apps I removing:

  • FreeForm
  • News
  • Reminders
  • Apple TV
  • FaceTime
  • Maps
  • Messages

I was able to have it successfully add Google Chrome and Drive to dock but not remove Default Apps. What I have currently handling the removal is a standard jamf policy listening to login events. I am using the built in "Dock Items" payload. To figure out what was going on I pushed the policy manually with verbose and it is pushing out a bunch of errors of "No Dock found"

verbose: No dock found in //System/Library/User Template/English.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/French.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/German.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/Italian.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/Japanese.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/Non_localized/Library/Preferences/
verbose: No dock found in //System/Library/User Template/Spanish.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/__permissions.plist/Library/Preferences/
verbose: No dock found in //System/Library/User Template/ar.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/ca.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/cs.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/da.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/el.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/en_AU.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/en_GB.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/es_419.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/fi.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/fr_CA.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/he.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/hi.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/hr.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/hu.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/id.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/ko.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/ms.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/no.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/pl.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/pt.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/pt_PT.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/ro.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/ru.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/sk.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/sv.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/th.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/tr.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/uk.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/vi.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/zh_CN.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/zh_HK.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/zh_TW.lproj/Library/Preferences/
verbose: Modifying dock items in /Users/{username}/Library/Preferences/...
verbose: Converting plist to XML...
verbose: Reading current dock...
verbose: Modifying dock items in /Users/{username}/Library/Preferences/...
verbose: Converting plist to XML...
verbose: Reading current dock...
verbose: No dock found in //System/Library/User Template/Dutch.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/English.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/French.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/German.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/Italian.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/Japanese.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/Non_localized/Library/Preferences/
verbose: No dock found in //System/Library/User Template/Spanish.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/__permissions.plist/Library/Preferences/
verbose: No dock found in //System/Library/User Template/ar.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/ca.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/cs.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/da.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/el.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/en_AU.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/en_GB.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/es_419.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/fi.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/fr_CA.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/he.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/hi.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/hr.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/hu.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/id.lproj/Library/Preferences/
verbose: No dock found in //System/Library/User Template/ko.lproj/Library/Preferences/

 

Has anyone ran into this error before or know what stems from it. The computer I am currently testing with is running Ventura 13.1

10 REPLIES 10

AJPinto
Honored Contributor II

There are a few ways to do this, the most stright forward way is to add the dock item to JAMF Admin. Once the dock item is in JAMF Admin you can make a policy to add the item to the dock or remove the item from the dock.

 

Managing Dock Items - Jamf Pro Administrator's Guide | Jamf

rtarson
New Contributor II

That is what I am doing but for the apps listed that I am trying to remove I'm thrown multiple errors "No Dock Found"

YanW
Contributor III

This is what I have, no problems in Ventura

samplesampleDock.png

rtarson
New Contributor II

I did a quick test and did the path like you have set as well. No luck with that, I'll have to continue testing maybe try on another account see if it changes anything. But all my settings match what you have as well.

rtarson
New Contributor II

Easy fix to this btw... I had no idea but when creating the Dock Items. They need to specifically match the name of the item thats there and case sensitve as well. I was putting "Apple TV",  Apple Etc...

smallchange
New Contributor III

Can you send your path for System Preferences, on in Ventura "System Settings" ? I used Jamf Admin to add it to my instance, and for some reason when I try to remove it from dock, it sticks around. I currently have this as my path: file:///System/Applications/System%20Settings.app/

 

Thanks in advance

BlakeR-NZ
New Contributor III

I have the same issue and am aware of the case sensitivity. One that is plaguing me is the App Store. I have tried the below and none of them work.

 

file:///System/Applications/App\ Store.app

file:///System/Applications/App Store.app

file://System/Applications/App Store.app

 

 

 

 

YanW
Contributor III

maybe this

file:///System/Applications/App%20Store.app

BlakeR-NZ
New Contributor III

I worked it out thanks, the name needs to be an exact match as well not just the file path. 

Can you post your final path?