Serial Number with ability to Override

From RiceFamily Wiki
Jump to: navigation, search

Research

Notes

Plan is to use Python to code the sensor since it's cross platform.

I'd like to use WMI to gather the Serial Number then store it in the Registry along with a BiosSerialOverride value that if set will allow us to override the serial number on computers where the manufacturer didn't set the Serial Number in BIOS and we have to way to set it ourselves. The idea behind storing it in the registry is that WMI calls can be "expensive" and a Serial Number really isn't likely to change during the life of the computer. It should be faster to pull the value from the Registry than to make a WMI call and get the value.

Code