Updated list-updates.ps1

This commit is contained in:
Markus Fleschutz 2025-05-10 14:44:39 +02:00
parent 4abee2a2ac
commit c895894c10

View File

@ -6,7 +6,7 @@
local machine and lists it (for installation use 'install-updates.ps1'). local machine and lists it (for installation use 'install-updates.ps1').
.EXAMPLE .EXAMPLE
PS> ./list-updates.ps1 PS> ./list-updates.ps1
Querying Microsoft Store updates... Querying Microsoft Store...
Name Id Version Available Name Id Version Available
---------------------------------------------------------------- ----------------------------------------------------------------
@ -36,18 +36,18 @@ try {
} }
} else { } else {
if (Get-Command winget -ErrorAction SilentlyContinue) { if (Get-Command winget -ErrorAction SilentlyContinue) {
Write-Host "`n⏳ Querying Microsoft Store updates..." -foregroundColor green Write-Host "`n⏳ Querying Microsoft Store..." -foregroundColor green
& winget upgrade --include-unknown --source=msstore & winget upgrade --include-unknown --source=msstore
Write-Host "`n⏳ Querying WinGet updates..." -foregroundColor green Write-Host "`n⏳ Querying WinGet..." -foregroundColor green
& winget upgrade --include-unknown --source=winget & winget upgrade --include-unknown --source=winget
} }
if (Get-Command choco -ErrorAction SilentlyContinue) { if (Get-Command choco -ErrorAction SilentlyContinue) {
Write-Host "`n⏳ Querying Chocolatey updates..." -foregroundColor green Write-Host "`n⏳ Querying Chocolatey..." -foregroundColor green
& choco outdated & choco outdated
} }
if (Get-Command scoop -ErrorAction SilentlyContinue) { if (Get-Command scoop -ErrorAction SilentlyContinue) {
Write-Host "`n⏳ Querying Scoop updates..." -foregroundColor green Write-Host "`n⏳ Querying Scoop..." -foregroundColor green
& scoop status & scoop status
} }
} }