mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-15 11:10:54 +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)
|
||||
$Version = (sudo dmidecode -s bios-version)
|
||||
$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 {
|
||||
$BIOS = Get-CimInstance -ClassName Win32_BIOS
|
||||
@ -28,7 +28,7 @@ try {
|
||||
$Manufacturer = $BIOS.Manufacturer.Trim()
|
||||
$Serial = $BIOS.SerialNumber.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 " "
|
||||
exit 0 # success
|
||||
|
Loading…
Reference in New Issue
Block a user