Get hardware serial number from within Windows
Did you ever had the situation that you need to the get the serial number of a Server or PC at a remote location and you only had a remote desktop connection to this device? There is a solution that may work in this situation. Execute the following command from the command line:
wmic bios get serialnumber
That should generate an output like this:
<span style="font-family:Courier New;">SerialNumber</span><span style="font-family:Courier New;">CZ12345678</span>
If you configured WMI for remote access you can execute this command directly over the network with the following command line:
<span style="font-family:Courier New;">wmic /node:MyServer01.contoso.com bios get serialnumber</span>