Update install-updates.ps1

This commit is contained in:
Markus Fleschutz 2023-07-10 10:37:15 +02:00
parent 5a1f76ace5
commit 0eeeff2c99

View File

@ -1,9 +1,9 @@
<#
.SYNOPSIS
Installs software updates
Installs updates
.DESCRIPTION
This PowerShell script installs updates for the local machine (needs admin rights).
Use "list-updates.ps1" to list available updates.
This PowerShell script installs software updates for the local machine (needs admin rights).
Use the script 'list-updates.ps1' to list available updates.
.EXAMPLE
PS> ./install-updates
.LINK
@ -34,7 +34,7 @@ try {
Write-Progress -completed " "
}
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"updates installed in $Elapsed sec"
"installed the updates in $Elapsed sec"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"