Removing Apple system apps from Dock

Paulie555
New Contributor II

Hey all,
Im using the JAMF Pro in house dock settings to remove apps though have hit a dead end with three Apple System Apps: Facetime, Apple TV and Apple Store

Im just wondering what is the best method for removing these last 3 from the dock. I have tried getting assistance from the JAMF Helpdesk and  even with their assistance we were unsuccessful in finding the correct path to remove these with the in house option.

If anyone could walk me through another method I would be very grateful.


11 REPLIES 11

sdagley
Esteemed Contributor II

@Paulie555 If you're talking about the Mac Dock creating Dock item for those and having a Policy with a  Dock Items payload set to remove those works for me. Here's the Paths I use for this Dock items:

file:///Applications/FaceTime.app/

file:///Applications/TV.app/

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

Paulie555
New Contributor II

@sdagley This isn't working for me (same path as yours) 
Have tried this on multiple macs

sdagley
Esteemed Contributor II

@Paulie555 Any chance your policy isn't running when a user is logged in? I haven't tested to be sure but I believe the Dock payload is only applied to the logged in user.

Paulie555
New Contributor II

@sdagley User is logged in when the policy runs so not sure why my results vary from others

Shyamsundar
Contributor

This applications are in the System Folder, try with the below path 

file:///System/Applications/FaceTime.app/

file:///System/Applications/TV.app/

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

@Shyamsundar  have tried this path with no success either 

BookMac
Contributor II

may dockutil helps?

https://github.com/kcrawford/dockutil

https://appleshare.it/posts/use-dockutil-in-a-script/

https://community.jamf.com/t5/jamf-pro/catalina-dock-removing-default-apple-apps/m-p/217452

#!/bin/sh

#DockUtil
dockutilbin=$(/usr/bin/which dockutil)

#Get current User
currentuser=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }')
echo $currentuser

#Write Dock Items in the Dock plist
loggedInUserPlist="/Users/$currentuser/Library/Preferences/com.apple.dock.plist"

#Set Dock Items
$dockutilbin --remove all --no-restart $loggedInUserPlist; sleep 2
$dockutilbin --add /System/Applications/Launchpad.app --position 1 --no-restart $loggedInUserPlist
$dockutilbin --add /System/Cryptexes/App/System/Applications/Safari.app --position 3 --no-restart $loggedInUserPlist
$dockutilbin --add /Applications/Google\ Chrome.app --position 4 --no-restart $loggedInUserPlist
$dockutilbin --add /Applications/Microsoft\ Outlook.app --position 5 --no-restart $loggedInUserPlist
$dockutilbin --add /Applications/Microsoft\ Word.app --position 6 --no-restart $loggedInUserPlist
$dockutilbin --add /Applications/Microsoft\ Excel.app --position 7 --no-restart $loggedInUserPlist
$dockutilbin --add /Applications/Microsoft\ PowerPoint.app --position 8 --no-restart $loggedInUserPlist
$dockutilbin --add /Applications/Microsoft\ Teams.app --position 9 --no-restart $loggedInUserPlist
$dockutilbin --add /Applications/TeamViewerQS.app --position 10 --no-restart $loggedInUserPlist
$dockutilbin --add /Applications/Cisco/Cisco\ Secure\ Client.app --position 11 --no-restart $loggedInUserPlist
$dockutilbin --add /System/Applications/System\ Settings.app --position 12 $loggedInUserPlist

exit

 

We are using this script with dockuitl 

Paulie555
New Contributor II

@BookMac does Dockutil work on newer machines/ latest OS?
Obviously don't want to end up with outdated systems

yes. works on sequoia with M4

karthikeyan_mac
Valued Contributor

https://github.com/kcrawford/dockutil 

We use @kcrawford dockutil for managing dock items.

Thanks

os-tech_r828
New Contributor III

We've also used dockutil and it has worked for us. However, ever since upgrading some of our computers to Sonoma a year ago, dockutil hasn't really been working. I haven't spent much time looking into it since it's been a low priority for us, but I am curious as to whether anyone who uses dockutil has noticed any issues on computers running Sonoma or Sequoia