Difference between revisions of "Serial Number with ability to Override"
From RiceFamily Wiki
(→Research) |
(→Notes) |
||
Line 8: | Line 8: | ||
= Notes = | = Notes = | ||
Plan is to use Python to code the sensor since it's cross platform. | 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 = | = Code = |
Revision as of 17:04, 29 May 2025
Research
- https://stackoverflow.com/questions/70575545/get-current-system-serial-number-in-python
- https://gist.github.com/angeloped/3febaaf71ac083bc2cd5d99d775921d0
- https://codingfleet.com/transformation-details/how-to-get-serial-number-using-wmi-in-python/
- https://github.com/Wojase/SB-SerialChecker
- https://www.geeksforgeeks.org/get-your-system-information-using-python-script/
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.