![]() Make sure that you run the script with the logged-in user. For example, if you run a script from Jamf you are creating a dock for the root user. The last important thing to know is if you run dockutil it runs in the userspace of that specific user. When you are not ready with the configuration, it makes no sense to restart the dock after every dockutil command. The no-restart function is to prevent restarting the dock for each change. This is also the reason why I like dockutil, it is straightforward, I want to add x to the dock at this position, done! There are many options that you can use with dockutil, however, we are only using the options -add, -position, -no-restart and specify the path to the plist. To solve this you can create a function that will check if the application exists before he will run the command. If you look into your Applications folder, you will see the TextEdit application.ĭockutil doesn’t check if the application exists on the device, and will be added as a Question mark in the dock. This is a great example because I want to highlight something. This will add TextEdit to the end of the dock. (It should be added in the next version.)ĭockutil -add /System/Applications/TextEdit.app We can deploy dockutil by uploading the dockutil installer PKG into the jamf Pro Server Settings -> Computer Management -> PackagesĪnother option is to use Installomator, but you need to add this label to the Installomator script if you are on version 9.0.1 or earlier. The script should be easy to use with other management systems. ![]() Clients must be macOS 11 Big Sur or higher (otherwise use older dockutil workflows) and for deploying to the devices we are using Jamf Pro. The latest release of dockutil (minimum version 3.0.0) the latest release can be found here on the GitHub repo. Whatever fits your needs, I prefer to leave the dock fully in control of the end-user so we just add items to the dock or create a basic dock to get the end-user started during enrollment What we need #ĭownload the scripts that is used and discussed in this blogpost from my GitHub repo. You can completely manage, semi manage or just add items to the dock. There are many ways to manage the dock of an end-user. To support the older versions of macOS and dockutil, I kept my first setDock scripts and renamed this one to setDock-legacy this is for supporting before macOS 11. However, I wanted to add some adjustments and share my workflows which you can use within Jamf. ![]() ![]() Luckily, not much is needed to be dusted off. dockutil is supporting macOS 11 Big Sur or higher.ĭon’t forget to look at the USAGE section in the readme or use the -help option to read more about the usage and options. Now that dockutil has been rewritten in Swift for macOS 12.3 compatibility, I needed to dust off my scripts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |