Use WMI to find the serial number of the system

At the top of the forum is an announcement with the link: