Reading BIOS AssetTag and Serial Number

A few weeks ago I was playing with a PowerShell script to read some values from the BIOS. Here the key commands in case you need it.
Initially open a PowerShell console with Admin rights, then run the one of the following commands directly from the prompt.
For all the info in the object Win32_ComputerSystem:
|
|
It will save in the variable ComputerDetails
an object with Domain, Manufacturer, Model, Name, PrimaryOwnerName and TotalPhysicalMemory.
If you want only get the model for example, you can get it with:
|
|
The class Win32_BIOS
contains BIOSVersion, Manufacturer, Name, SerialNumber and Version.
To check all details, run:
|
|
For only serial number:
|
|
Another class that contains information for BIOS is Win32_SystemEnclosure, it have Manufacturer, Model, SerialNumer and SMBIOSAssetTag
For all details, check:
|
|
For serial number and asset tag:
|
|
Hope you find it useful
Have fun!
G