If you want to get the serial number of a computer, either locally or remotely, use the following in a PowerShell CMD window.
To get the local computer serial number:
get-wmiobject -Class win32_bios | select PSComputerName,SerialNumber
To get the serial number of a remote computer:
get-wmiobject -ComputerName -Class win32_bios | select PSComputerName,SerialNumber
To interact with remote computers, make sure to enable PowerShell Remoting.
Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in Dallas, Texas in 2018!