I use dockutil - https://github.com/kcrawford/dockutil - makes it super easy to manage all things dock
#!/bin/sh /usr/local/bin/dockutil --remove all --no-restart --allhomes sleep 2 /usr/local/bin/dockutil --add "/Applications/System Preferences.app" --allhomes /usr/local/bin/dockutil --add "/Applications/Launchpad.app" --allhomes /usr/local/bin/dockutil --add "/Applications/Google Chrome.app" --allhomes /usr/local/bin/dockutil --add "/Applications/Slack.app" --allhomes /usr/local/bin/dockutil --add "/Applications/Self Service.app" --allhomes sleep 2 killall Dock sleep 2
I manage my staff and lab macs separately by using Configuration profiles. Managing the Dock through config profile allows me to customize each lab and add any .app I wan along with removing all but what I want displayed, for staff I Merge with users dock to allow them to add/remove their own apps.
@piagetblix Yes, the default behavior is to replace the existing dock with the items you define in your profile. However, you can also select the "merge with user's dock" option to keep the existing dock items, and just add what you have in your profile.
As long as "prevent modifying items in dock" is not enabled, the user is free to adjust the dock.
I would second using profile creator. You can make a dock profile that adds to the existing and use the export plist option, long click on the export button, then you can just add that as a custom setting in a profile so no need to sign it. Advantage is you can still see the settings in the profile because when they are signed you can't.
It seems even if I have "prevent modifying items in dock" unchecked it won't allow me to remove apps from the dock that are specified in the profile. I supposed you have to check the merge button to allow things to be deleted?
Princeton Public Schools