Skip to content

Add Dell BIOS Detection Method #92

Description

@Ebag333

If version is a number like 1.2.3, then prepend with [VERSION]

If version starts with A, then leave it a string

CHANGE ME

$TargetBIOSVersion = [VERSION]"1.6.4"

CHANGE ME

$BIOSVersion = (Get-WmiObject -Query "select SMBIOSBIOSVersion from Win32_BIOS").SMBIOSBIOSVersion

If ($BIOSVersion -like 'A*')
{
$BIOSVersion = $BIOSVersion -replace "A", ""
}
else
{
$BIOSVersion = [Version]BIOSVersion
}

if($BIOSVersion -ge $TargetBIOSVersion)
{
Write-Host "Installed"
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions