CollapseAll image

Enumerate BIOS

The following steps describe how to retrieve BIOS information.

1.  Retrieve the instance of CIM_BIOSElement., where the “Name” key equals “Primary BIOS” and examine the following properties:

a.   CIM_BIOSElement.Version to see the version of the BIOS software image.

b.   CIM_BIOSElement.ReleaseDate to see the date that this BIOS was released.

c.   CIM_BIOSElement.Manufacturer to see the manufacturer of the BIOS software image.

Click here for a snippet demonstrating this step

See the General Info Get Core Version use case for the GetCoreVersion function.

You can execute this snippet by inserting it into the execution template found here.

  

$biosElementRef =$wsmanConnectionObject.NewReference("SELECT * FROM CIM_BIOSElement WHERE Name='Primary BIOS'")

$biosElementInstance =$biosElementRef.Get()

$version =$biosElementInstance.GetProperty("Version")

$releaseDate =$biosElementInstance.GetProperty("ReleaseDate")

$fwVersion = GetCoreVersion

if($fwVersion.ToString() -ge "5.1")

{

    $releaseDate =$releaseDate.InternalObject.Text

}

$manufacturer =$biosElementInstance.GetProperty("Manufacturer")

 

 

2.  Retrieve the instance of CIM_BIOSFeature, where the “Name” key equals “Primary BIOS Features”.

Examine CIM_BIOSFeature.Characteristics to see the features supported by the BIOS.

Click here for a snippet demonstrating this step

You can execute this snippet by inserting it into the execution template found here.

  

$biosFeatureRef =$wsmanConnectionObject.NewReference("SELECT * FROM CIM_BIOSFeature WHERE Name='Primary BIOS Features'")

$biosFeatureInstance =$biosFeatureRef.Get()

$characteristics =$biosFeatureInstance.GetProperty("Characteristics")

 

 

Instance Diagram

Classes Used in This Flow

SDK Sample

If there is a sample demonstrating this flow, it is included in the SDK installation file. See SDK Installation Layout for details.

 

Copyright © 2006-2022, Intel Corporation. All rights reserved.