Login to participate
Endpoint Management & Virtualization DownloadsRSS

Apple Warranty Information

dougj's picture

This script retrieves the apple hardware serial number from system_profiler, retrieves the warranty details for that serial number from https://selfsolve.apple.com/Warranty.do and parses various pieces of data from that warranty information. The data retrieved in this version includes: 

 

  • SerialNumber
  • ProductDesc
  • PurchaseDate
  • WarrantyExpires
  • CoverageDesc
  • PHCoverageValue
  • PHCoverageDesc
  • ImageURL
  • PhoneMessage

 

Additional data may be available from the warranty site. 

roma's picture

Nice script! A very useful

Nice script! A very useful example.

Why did you comment this line?
#SerialNumber=`system_profiler...
The script doesn't return data until you uncomment this line.

dougj's picture

Code comment

My bad. I did that for testing purposes. I tested on a Mac OS  X Server 10.5 Fusion vm, which doesn't have a valid serial number. There was a second line that assigned a valid serial number from another machine, which was removed prior to posting.  I'll update the script shortly.

dougj's picture

Updated script is now posted

I've posted an updated version of the script that does not comment out the serialnumber assignment.

Andrew Bosch's picture

Pretty Sweet...

This is very handy Doug, thanks! 

------------------------------------
Product Manager
Symantec