From aed29e2154b6ae642a80ba8e5ca6b1553674e402 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sun, 4 Dec 2022 10:03:10 +0100 Subject: [PATCH] Update check-bios.ps1 --- Scripts/check-bios.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Scripts/check-bios.ps1 b/Scripts/check-bios.ps1 index d6d66431..a9071c87 100644 --- a/Scripts/check-bios.ps1 +++ b/Scripts/check-bios.ps1 @@ -5,6 +5,7 @@ This PowerShell script queries BIOS details and prints it. .EXAMPLE PS> ./check-bios + ✅ BIOS V1.10 by INSYDE Corp. (S/N NXA82EV0EBB07600, version ACRSYS - 2) .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -12,15 +13,16 @@ #> try { + Write-Progress "Querying BIOS details..." if ($IsLinux) { # TODO } else { $BIOS = Get-CimInstance -ClassName Win32_BIOS $Manufacturer = $BIOS.Manufacturer $Model = $BIOS.Name - $SerialNumber = $BIOS.SerialNumber + $Serial = $BIOS.SerialNumber $Version = $BIOS.Version - "✅ BIOS $Manufacturer $($Model): S/N $SerialNumber, version $Version" + "✅ BIOS $Model by $Manufacturer (S/N $Serial, version $Version)" } exit 0 # success } catch {