Posted on 02-14-2022 08:20 AM
I have tried all solutions from Jamf Pro and other third party app, but none of work, can anyone show me a screenshot of their setting or just provide better details on how to set it up properly? Thanks!
Solved! Go to Solution.
Posted on 02-14-2022 10:35 AM
Dock master still works great. You can lock the dock down (might as well use Jamf natively for that) or set a default that anyone can change as they so please. If you are just setting a user removal dock, it will create a zip file and all you need to do is run the script included in that zip file to create a pkg that can be deployed during DEP or even for existing machines if you want to change their current dock.
Posted on 02-14-2022 08:50 AM
Hey @jonna1006, can you share more about your flow/needs for updating dock items? What are you trying to accomplish and when? I use dockutil and a script at enrollment to remove most of the default Apple stuff and add apps if they were installed during enrollment (our enrollment flow includes choosing optional installations). The trick with something like dockutil is making sure the commands are run as the current logged-in user otherwise the results are inconsistent (or simply won't work because the script will run as root).
Posted on 02-14-2022 09:48 AM
We use dockutil with Outset so the script runs under the User.
Posted on 02-14-2022 10:35 AM
Dock master still works great. You can lock the dock down (might as well use Jamf natively for that) or set a default that anyone can change as they so please. If you are just setting a user removal dock, it will create a zip file and all you need to do is run the script included in that zip file to create a pkg that can be deployed during DEP or even for existing machines if you want to change their current dock.
Posted on 02-15-2022 08:06 AM
Dock master is the best solution for beginning so far, as I have tried others as well, and it is simple and easy. Thank you so much for your help!!😁
Posted on 02-14-2022 11:41 AM
Just a warning, DockUtil is a Python2 application and will stop working when macOS 12.3 is released. The author says he will have a new version (assumably Python3) very soon. However, you may need to install a version of python3. I highly recommend macadmins/python: Framework files for use with popular python macadmin toolsets (github.com)
If you know Python, you can also use Docklib module for Python3. MacAdmins python includes it, at least in it's recommended version.
Posted on 02-16-2022 05:47 AM
Replying to my own thread. A new version of Dockutil has been posted. It has been ported to Swift to avoid any python dependency.
kcrawford/dockutil: command line tool for managing dock items (github.com)
Click on "Releases" and download Dockutil 3.0.0 beta. I haven't tested it yet, but will be soon.
02-16-2022 08:23 AM - edited 02-16-2022 08:28 AM
Thanks again @Tribruin
It looks like he rewrote it in Swift. So, no need for python 3 I suppose? If so that would be great. Trying not to install any versions of Python on our Macs if I can avoid it, since it tends to pop up on our Qualys vulnerability scans.
Edit: Good grief. I clearly didn't read your post past the first sentence since you said it was written in Swift to avoid Python dependency. Anyway, thanks again for the heads up and posting the link. I'll be testing this version out asap.
Posted on 02-14-2022 11:48 AM
Thanks for the heads up! I will put it on my list to update.
Posted on 02-14-2022 12:19 PM
I have Policies in place that place specific apps in the Dock and also removes some of the 20+ default icons. This is mainly scoped to lab computers or loaner MacBooks so we can guarantee the user sees Chrome, Self Service, Microsoft Word, Safari, etc.
Computers → Policies → then create a Policy with the Dock Items payload and you can add/remove apps from there. The other half is setting custom Dock Items in Settings → Computer Management → Dock Items. There you can Click New and then add the app name, path, etc. and then those things will show as available options in your Dock Items Policy.
Posted on 02-14-2022 12:36 PM
We also do this. We have a once per user per computer policy that builds our default dock, and most policies that add or remove an application include a dock policy to add/remove the dock item. It's been working pretty well. I tend to use Jamf Admin to add dock icons just out of habit, but I've also done it right through Jamf like @jordan_m1 said above.
02-15-2022 05:00 AM - edited 02-15-2022 05:01 AM
I have found the following syntax to work using Self Service as an example:
file://localhost/Applications/Self Service.app/
Posted on 02-15-2022 06:38 AM
Exactly. I have all of mine like this, for example: file:///Applications/Self Service.app/
And the Policy runs once per user per computer.
Posted on 02-15-2022 08:19 AM
We're using a flow similar to what @emily describes with dockutil. I create a LaunchAgent and script along with pushing dockutil. The script runs at login to set the Dock up. I set a flag in the user profile after successful run to indicate that that user's dock has been set up, so it won't run again. In this way, any new accounts that come along get the Dock set up with default icons.
Thanks @Tribruin for mentioning about python2 and dockutil. I'll need to make sure we test and start deploying the new version once it's out.
Posted on 02-17-2022 06:25 AM