4 lines
277 B
PowerShell

$biosElementRef = $wsmanConnectionObject.NewReference("SELECT * FROM CIM_BIOSElement WHERE Name='Primary BIOS'")
$biosElementInstance = $biosElementRef.Get()
$version = $biosElementInstance.GetProperty("Version")
$elementName = $biosElementInstance.GetProperty("ElementName")