Re: Getting the macs serial number
Re: Getting the macs serial number
- Subject: Re: Getting the macs serial number
- From: Tomas Zahradnicky <email@hidden>
- Date: Tue, 3 Sep 2002 15:20:03 +0200
I'm not after a unique number. This is purely for asset management purposes
and I am aware that not all macs support hardware serial numbers. I just
need a way of accessing it if it's available.
Thanks
Jonathan
The hardware serial number can be accessed using IOKit. Run
IORegistryExplorer and look at:
IOService -> Root -> MachineName -> serial-number property
if you want that for a copy protection, use ethernet card hardware
address (MAC address) which can easily be found and is guaranteed to
be quite unique or use hard disk volume creation date/time.
-Tomas
--
# Tomas Zahradnicky, Jr
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.