Is there a way to get the date of the first boot of an old mac?
Solution 1:
The closest answer to my problem could be:
ls -lt /private/var/db/ | tail -3
which shows for example:
drwx------ 8 root wheel 272 Apr 18 2009 krb5kdc
drwx------ 3 root wheel 102 Apr 18 2009 dhcpclient
-r-------- 1 root wheel 48 Jan 14 2009 SystemKey
Ignoring the date of the "SystemKey"-file.
Solution 2:
The file /private/var/db/.AppleSetupDone
is created on the first boot. I'd bet it doesn't get migrated over from an old mac if you choose that, so it might be a good place to start your search for a file stamp.
Any file can be changed later, but you have to go looking for this one.
AppleCare can also provide you details if you give them your serial number. They have manufacture date, sale date (sometimes inaccurate) and possibly if the user runs the "Mac Buddy" setup assistant and registers the Mac online during the first boot.
Solution 3:
I figured, I can get the date from System Information (Profiler) in all places. I had the habit of customizing the app the moment I have new machine. So it was a great found.
P.S: I'm saying good bye (wipe & install) to this work machine today, 1967 days of self learning of this instance going to disappear :-(