mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-16 03:30:39 +01:00
Update check-bios.ps1
This commit is contained in:
parent
8193245c39
commit
e2f7de6493
@ -20,7 +20,7 @@ try {
|
|||||||
$Manufacturer = (sudo dmidecode -s system-manufacturer)
|
$Manufacturer = (sudo dmidecode -s system-manufacturer)
|
||||||
$Version = (sudo dmidecode -s bios-version)
|
$Version = (sudo dmidecode -s bios-version)
|
||||||
$RelDate = (sudo dmidecode -s bios-release-date)
|
$RelDate = (sudo dmidecode -s bios-release-date)
|
||||||
"✅ $Model BIOS by $Manufacturer ($Version release of $RelDate)"
|
Write-Host "✅ $Model BIOS by $Manufacturer ($Version release of $RelDate)"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$BIOS = Get-CimInstance -ClassName Win32_BIOS
|
$BIOS = Get-CimInstance -ClassName Win32_BIOS
|
||||||
@ -28,7 +28,7 @@ try {
|
|||||||
$Manufacturer = $BIOS.Manufacturer.Trim()
|
$Manufacturer = $BIOS.Manufacturer.Trim()
|
||||||
$Serial = $BIOS.SerialNumber.Trim()
|
$Serial = $BIOS.SerialNumber.Trim()
|
||||||
$Version = $BIOS.Version.Trim()
|
$Version = $BIOS.Version.Trim()
|
||||||
"✅ $Model BIOS by $Manufacturer (S/N $Serial, version $Version)"
|
Write-Host "✅ $Model BIOS by $Manufacturer (S/N $Serial, version $Version)"
|
||||||
}
|
}
|
||||||
Write-Progress -Completed " "
|
Write-Progress -Completed " "
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
|
Loading…
Reference in New Issue
Block a user