Using the PowerShell Get-WmiObject cmdlet to get BIOS information

You can get BIOS information on a system running the Microsoft Windows operating system using the PowerShell cmdlet Get-WmiObject cmdlet. E.g.

Learning Windows PowerShell
Learning Windows PowerShell
1x1 px

PS C:\> Get-WmiObject win32_bios


SMBIOSBIOSVersion : FB
Manufacturer      : Award Software International, Inc.
Name              : Award Modular BIOS v6.00PG
SerialNumber      :
Version           : GBT    - 42302e31



PS C:\>

If you only want a particular piece of information, such as the manufacturer or BIOS version number, you can add | Select followed by the parameter or parameters you want to see displayed. E.g.:

PS C:\> Get-WmiObject win32_bios | select Manufacturer

Manufacturer
------------
Award Software International, Inc.


PS C:\> Get-WmiObject win32_bios | select Manufacturer, Version

Manufacturer                       Version
------------                       -------
Award Software International, Inc. GBT    - 42302e31


PS C:\>

On Dell systems, you can use the command to obtain the service tag number, since it will be shown as the serial number as in the case of the Dell Inspiron 620s in the example below:

PS C:\ Get-WmiObject win32_bios


SMBIOSBIOSVersion : A04
Manufacturer      : Dell Inc.
Name              : BIOS Date: 11/21/11 10:52:35 Ver: 04.06.04
SerialNumber      : FP1QVR1
Version           : DELL   - 1072009



PS C:\> Get-WmiObject win32_computersystem


Domain              : mayberry.lan
Manufacturer        : Dell Inc.
Model               : Inspiron 620s
Name                : UNION
PrimaryOwnerName    : Jane
TotalPhysicalMemory : 6350831616



PS C:\>

You can also use Windows Management Instrumentation Command-line (WMIC) to obtain the information as noted at Using wmic to obtain model and serial numbers for Dell systems.

Related articles:

  1. Obtaining monitor information from a PowerShell Prompt