We're planning our annual Mac refresh project in which we'll be refreshing about 25% of our install base. One of the issues that plagues me every year is migrating departmental apps (i.e. non-core) from the old Mac to the new Mac. Currently we're generating an app report for each Mac and manually combing through it to find departmental apps. Needless to say we miss a few things, every year ;)
I've been working on a way to automate this, and currently am dynamically generating a list of all applications installed in the /Applications and /Applications/Utilities/ folders, comparing them to a pre-generated list of Departmental apps, and then matching those up to a pre-generated list of their corresponding Casper packages. If a match is found the package gets appended to the end of a dynamically sized array. After all the comparisons are done, I loop through the dynamic array and run a jamf install command for each item.
I'm doing it all in bash, so the lack of multi-dimensional array support means I have to be SUPER Careful about the ordering of the app and casper package arrays. I was thinking of reading the /Library/JAMF/Receipts directory to see what was installed and just appending to an array from that list.
Just curious, what are you all doing to handle this type of reinstall for each new Mac?
