Comparing BIOS versions

François Racine 1 Reputation point


I need comparing BIOS version for a script and exit the script if the current BIOS is newer than the one in the package.

My problem is the BIOS name is very different from each manufacturer:

Toshiba: Version 6.80
Version 6.90
Lenovo: N2XET26W (1.16 )
N2XET27W (1.17 )

For Lenovo, I tried comparing both BIOS with [system.version] but the input is incorrect.

What should be the good way to compare BIOS versions and getting if the new BIOS is newer or older than the actual one?


Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,449 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Rich Matheisen 45,671 Reputation points

    Try Get-WMIObject -Computer XXXX -Class Win32_BIOS

    You should be able to replace XXXX with the name of an array of computer names. You can then use the information to sort out what part(s) of the data returned for each machine you need to compare to the list of names of the BIOS you'll be comparing them to.

  2. Sam of Simple Samples 5,526 Reputation points

    WMI is the best way to determine the version of the BIOS installed in the system. Note that modern systems use UEFI; I will assume you are familiar with that. The following should get you started.

    I doubt there is a standard interface for determining the current version available from the manufacturer.

  3. Ian Xue (Shanghai Wicresoft Co., Ltd.) 33,951 Reputation points Microsoft Vendor


    The WMI Win32_BIOS class returns complete information about the system BIOS including manufacturer and version. You can contact the manufacturer to confirm how to determine the version of the BIOS firmware file.

    Listing BIOS Information

    Best Regards,
    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments