engineeringsunsky.blogg.se

Get monitor serial number
Get monitor serial number












  1. GET MONITOR SERIAL NUMBER SERIAL NUMBERS
  2. GET MONITOR SERIAL NUMBER MAC OS X

However, if on your boxes the system_profiler utility spits out the dictionary items in a different order than what I saw on our boxes then these queries will likely fail.

GET MONITOR SERIAL NUMBER MAC OS X

This should work on Mac OS X 10.4 through 10.6… haven’t tried 10.3. That hack will break if Apple changes the output format in a future version of system_profiler. Also, there is a lame sed hack in the Action Script one-liner it makes the xml output readable by our plist inspector as it expects the top level to be “dict” not “array”. I used the xml output for ease of parsing. The latter is easy to parse using the Relevance inspector (for Mac plist’s) but has the drawback that some of the strings are less “clean” than those presented in the formatted system_profiler output. The former is nice to read but hard to parse programatically. There were two ways to get the System Profiler output: formatted or xml. OK… it’s not perfect, but it may get you far enough along to be satisfactory.

get monitor serial number

( imported comment written by NoahSalzman) Let me know if this seems to work for you… if you want just the model number add a item 0 of to the beginning of the relevance above, for only serial number add item 1 of, and for only date, add item 2 of.I have only tested this on a couple computers.

get monitor serial number

GET MONITOR SERIAL NUMBER SERIAL NUMBERS

Not all computers have serial numbers (laptops don’t seem to have them).Q: ((if (exists first “000000fc00” of it) then hexadecimal string (first 24 of following texts of first “000000fc00” of it ) else “n/a”), (if (exists first “000000ff00” of it) then hexadecimal string (first 24 of following texts of first “000000ff00” of it ) else “n/a”), (hexadecimal integer (first 2 of following text of position 32 of it )/4) as string & “/” & (1990+(hexadecimal integer (first 2 of following text of position 34 of it ))) as string) of (values “EDID” of keys ((“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum” & it & “\Device Parameters”) of (string values of selects “PNPDeviceID from Win32_DesktopMonitor” of wmi) ) of registry as string) I researched this for a while and I found some cool stuff… based on the results, I made a relevance query that returns model number, serial number, and date manufactured of each monitor:














Get monitor serial number