Posted on 06-23-2023 07:17 AM
Hi,
I have been asked to report the initial OS installation date and user profile creation dates for Macbooks. I couldn't find a way to do this with Jamf Pro. Is there a way to get this with a script to be run through Jamf Pro or Jamf Pro?
Posted on 06-23-2023 08:15 AM
System Profiler (SPInstallHistoryDataType) will get you the raw data;
system_profiler SPInstallHistoryDataType
Installations:
macOS Monterey:
Version: 12.6.6
Source: Apple
Install Date: 30/5/2023, 2:31 pm
You can then manipulate to find the names / types of the ones you want;
system_profiler SPInstallHistoryDataType | sed -e "s/^[ ]*//" | grep -B 3 -A 2 "Source: Apple" | sed -e '/^[[:space:]]*$/d;/Source: Apple/d' | uniq
macOS Monterey:
Version: 12.6.6
Install Date: 30/5/2023, 2:31 pm
TestFlight:
Version: 3.3.0
Install Date: 30/5/2023, 10:21 pm