A few months ago, I had a need to find the serial numbers on a few servers. This number is printed in small size letters either on a tag or sticker placed on the computer case. In most cases, that sticker isn’t visible without extracting the server from the rack. Too much hassle!
Luckily, virtually every brand name machine has its serial number inside the system’s BIOS. We just need access to that information. So, the information is there, but we can’t read it easily. The answer is to use WMI.