Recently I was working with a K-12 school on a large imaging and deployment project. One of the challenges we ran into was finding an easy way to determine which configuration machines had been imaged with. The solution we came up with was actually quite simple.
Each imaging configuration had it’s own post install script, so we added a line to create a “dummy receipt” on each machine.
For the student configuration, we added this line:
And for the staff configuration, we added this line:
As you can see, these are simple hidden files, and they live in a location where end users will not be able to see or modify them.
The next step was to create an extension attribute that looks for these receipts.
if [ -f “/var/db/.StudentImage” ];
elif [ -f “/var/db/.StaffImage” ];
We set the extension attribute to be populated by that script, and to return a data type of string.
After that, we were able to create smart groups based on the type of image on the machine.