Posted on 12-11-2024 01:05 PM
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.
Posted on 12-11-2024 02:05 PM
@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/
a month ago
@sdagley This isn't working for me (same path as yours)
Have tried this on multiple macs
a month ago
@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.
a month ago
@sdagley User is logged in when the policy runs so not sure why my results vary from others
a month ago
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/
a month ago
@Shyamsundar have tried this path with no success either
a month ago
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
a month ago
@BookMac does Dockutil work on newer machines/ latest OS?
Obviously don't want to end up with outdated systems
a month ago
yes. works on sequoia with M4
a month ago
a month ago
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
4 weeks ago
Hey all,
Managed to work out the issue with the in house Dock policy
Path names were correct, however the display names for each app were not exact
Thanks all for the help and advice