-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
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
Labels
No labels