Skip to main content
Question

About OS Install Date and User Profile Create Date

  • June 23, 2023
  • 1 reply
  • 6 views

husnudagidir
Forum|alt.badge.img+5

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?

 

1 reply

Bol
Forum|alt.badge.img+11
  • Contributor
  • June 23, 2023

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