mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-15 12:34:25 +01: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
|
||||
$SerialNumber = $BIOS.SerialNumber
|
||||
$Version = $BIOS.Version
|
||||
"✅ BIOS $Manufacturer $($Model): S/N $SerialNumber, version $Version"
|
||||
"✅ $Manufacturer $($Model) BIOS: S/N $SerialNumber, version $Version"
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
|
@ -34,7 +34,7 @@ try {
|
||||
& winget upgrade --all
|
||||
}
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ installed updates in $Elapsed sec"
|
||||
"✅ updates installed in $Elapsed sec."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user