Windows: Get a device serial number from command line

Hi,

it’s simply possible to get the serial number of your Windows device at command line. Precontition is that the vendor has done it’s home work and filled up the DMI tables correctly 🙂 .

You have to query the Wmi Class Win32_BIOS. You can use the GUI Tool wbemtest, connect to the root\cimv2 namespace fire the query

select SerialNumber from Win32_BIOS

Or open a command line and use the Windows wmi command line tool wmic


c:\> wmic bios get serialnumber
YXZ0123456

 

Michael

Leave a Reply Cancel reply