mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-16 15:41:52 +02:00
Updated the manuals
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
Script: *list-updates.ps1*
|
||||
========================
|
||||
|
||||
This PowerShell script queries the latest available software updates for the local machine and lists it.
|
||||
This PowerShell script queries the latest available software updates for the
|
||||
local machine and lists it.
|
||||
NOTE: Use the script 'install-updates.ps1' to install the listed updates.
|
||||
|
||||
Parameters
|
||||
@ -21,9 +22,9 @@ PS> ./list-updates.ps1
|
||||
|
||||
|
||||
|
||||
Name Id Version Available Source
|
||||
--------------------------------------------------------------------------------------------------
|
||||
Git Git.Git 2.41.0 2.41.0.2 winget
|
||||
Name Id Version Available Source
|
||||
------------------------------------------------------------------------------
|
||||
Git Git.Git 2.43.0 2.44.0 winget
|
||||
...
|
||||
|
||||
```
|
||||
@ -43,14 +44,15 @@ Script Content
|
||||
.SYNOPSIS
|
||||
Lists software updates
|
||||
.DESCRIPTION
|
||||
This PowerShell script queries the latest available software updates for the local machine and lists it.
|
||||
This PowerShell script queries the latest available software updates for the
|
||||
local machine and lists it.
|
||||
NOTE: Use the script 'install-updates.ps1' to install the listed updates.
|
||||
.EXAMPLE
|
||||
PS> ./list-updates.ps1
|
||||
|
||||
Name Id Version Available Source
|
||||
--------------------------------------------------------------------------------------------------
|
||||
Git Git.Git 2.41.0 2.41.0.2 winget
|
||||
Name Id Version Available Source
|
||||
------------------------------------------------------------------------------
|
||||
Git Git.Git 2.43.0 2.44.0 winget
|
||||
...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
@ -73,7 +75,8 @@ try {
|
||||
& winget upgrade --include-unknown
|
||||
Write-Progress -completed "Done."
|
||||
}
|
||||
" (use 'install-updates.ps1' to install the listed updates)"
|
||||
" "
|
||||
"NOTE: Use the script 'install-updates.ps1' to install the listed updates."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -81,4 +84,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-updates.ps1 as of 01/25/2024 13:58:40)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-updates.ps1 as of 03/27/2024 17:36:29)*
|
||||
|
Reference in New Issue
Block a user