How to get system information from command line

Here's how to get the serial number/service tag or product name from a server or client PC.

Open up command prompt and type:
Serial number:

wmic bios get serialnumber

Product name:

wmic csproduct get name