

Technically this would be first boot rather then reimage but i think thats mostly the same idea if I understand your question. Its a bit of a shot in the dark but I would be curious if would be accurate. So the best I could come up with would be the date the key for your system keychain was generated as this should happen at first boot most days. The first time you connect an iOS device to the Mac using USB, you need to tap Trust on the device. Open the Content Caching pane of Sharing preferences for me. My first impulse was to look at the /System directory, but then it occurred to me that the date there comes from the image not the first boot. On your Mac, choose Apple menu > System Preferences, click Sharing, then select Content Caching. So I think you would have to do this in directly. So this is a bit of a hard one, as to my knowledge asr does not store this data in the file system itself, and if you used a OSInstall.mpkg the /var/log/install.log might be rotated by the time the script runs. We've found that creating the /usr/local/casper directory provides a lot of flexibility in how we capture information about a machine. Enter a name in the Profile name field and configure the additional settings as needed, including the removal policy and time filter. Select the type of enrollment you want to make the profile for.

This is very similar to the solution above but I just thought I'd throw it out there as another alternative. In Jamf School, navigate to Profiles in the sidebar.

Then we have an extension attribute that reads the date from that file.Įcho " cat $dateCheck | awk ''"
#SCRIPT WRITING FOR MAC IMAGE USIIGN JAMF UPGRADE#
Among these are deployment date, originally deployed operating system version, and date of OS upgrade.Īs part of the imaging or upgrade, we just put in a simple script that does something like this (using date of upgrade as the example): We put small text files in here that provide information about a machine. The first thing we do is create a /usr/local/casper directory. We do something similar but we create it using a different method.
