Skip to content

Add Dell BIOS Detection Method #92

@Ebag333

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"
}

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