Posted on 01-10-2023 12:04 PM
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:
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
Posted on 01-10-2023 12:09 PM
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.
01-10-2023 12:12 PM - edited 01-10-2023 12:13 PM
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"
Posted on 01-10-2023 12:48 PM
This is what I have, no problems in Ventura
Posted on 01-10-2023 01:02 PM
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.
Posted on 01-27-2023 11:13 AM
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...
Posted on 08-28-2023 01:39 PM
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
Posted on 06-18-2023 08:14 PM
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
Posted on 06-18-2023 08:32 PM
maybe this
file:///System/Applications/App%20Store.app
Posted on 06-18-2023 08:42 PM
I worked it out thanks, the name needs to be an exact match as well not just the file path.
Posted on 01-10-2024 10:16 AM
Can you post your final path?