mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-16 11:40:53 +01:00
Update check-bios.ps1
This commit is contained in:
parent
b5ae3594da
commit
aed29e2154
@ -5,6 +5,7 @@
|
|||||||
This PowerShell script queries BIOS details and prints it.
|
This PowerShell script queries BIOS details and prints it.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-bios
|
PS> ./check-bios
|
||||||
|
✅ BIOS V1.10 by INSYDE Corp. (S/N NXA82EV0EBB07600, version ACRSYS - 2)
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -12,15 +13,16 @@
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Write-Progress "Querying BIOS details..."
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
# TODO
|
# TODO
|
||||||
} else {
|
} else {
|
||||||
$BIOS = Get-CimInstance -ClassName Win32_BIOS
|
$BIOS = Get-CimInstance -ClassName Win32_BIOS
|
||||||
$Manufacturer = $BIOS.Manufacturer
|
$Manufacturer = $BIOS.Manufacturer
|
||||||
$Model = $BIOS.Name
|
$Model = $BIOS.Name
|
||||||
$SerialNumber = $BIOS.SerialNumber
|
$Serial = $BIOS.SerialNumber
|
||||||
$Version = $BIOS.Version
|
$Version = $BIOS.Version
|
||||||
"✅ BIOS $Manufacturer $($Model): S/N $SerialNumber, version $Version"
|
"✅ BIOS $Model by $Manufacturer (S/N $Serial, version $Version)"
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user