mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-23 18:38:19 +02:00
Update check-bios.ps1 and install-updates.ps1
This commit is contained in:
parent
2b58305a23
commit
baa459d26a
@ -20,7 +20,7 @@ try {
|
|||||||
$Model = $BIOS.Name
|
$Model = $BIOS.Name
|
||||||
$SerialNumber = $BIOS.SerialNumber
|
$SerialNumber = $BIOS.SerialNumber
|
||||||
$Version = $BIOS.Version
|
$Version = $BIOS.Version
|
||||||
"✅ BIOS $Manufacturer $($Model): S/N $SerialNumber, version $Version"
|
"✅ $Manufacturer $($Model) BIOS: S/N $SerialNumber, version $Version"
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
|
@ -34,7 +34,7 @@ try {
|
|||||||
& winget upgrade --all
|
& winget upgrade --all
|
||||||
}
|
}
|
||||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||||
"✔️ installed updates in $Elapsed sec"
|
"✅ updates installed in $Elapsed sec."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user