that right now I've no idea how to execute!
Like everyone else, we're using it to set our docks, removing the default stuff from the dock that we don't need (like Mail, Photo Booth, etc) and adding the ones the user will need daily (Word, Outlook, etc).
Currently, we're doing this with three scripts that load the dock with apps associated with one of three builds we roll out. That's working just fine. But we always have a few users/job roles that have an app or four that isn't part of one of the three builds, so we add that manually. Moreover, I've been tasked with making docutil usable not just for my division, but several, each with multiple builds with their own specific apps and their own occasional exceptions.
So here's the idea for the script. Rather than statically use docutil to add a string of apps, that hopefully fits the apps installed with each build, the script contains a set of all our "approved" apps, then searches against /Applications/ for matches. Any matches are then added via dockutil.
The only maintenance on this script would be to add, as they become part of our loadouts, any new apps to the approved list and the docutil command to add it to the dock.
