
The default behavior of the Update-WingetPackage looks wrong. It should not try to upgrade all packages but only the ones with update available. So it should be a a syntactic sugar for Get-WinGetPackage | Where-Object -Property IsUpdateAvailable -eq $true | ForEach-Object { Update-WinGetPackage -Id $_.ID } , not Get-WinGetPackage | ForEach-Object { Update-WinGetPackage -Id $_.ID }. Currently it gets all the packages and then throws an exception.
P.S: Excuse me for the bad redaction.
Originally posted by @zbalkan in #3182 (comment)
The default behavior of the
Update-WingetPackagelooks wrong. It should not try to upgrade all packages but only the ones with update available. So it should be a a syntactic sugar forGet-WinGetPackage | Where-Object -Property IsUpdateAvailable -eq $true | ForEach-Object { Update-WinGetPackage -Id $_.ID }, notGet-WinGetPackage | ForEach-Object { Update-WinGetPackage -Id $_.ID }. Currently it gets all the packages and then throws an exception.P.S: Excuse me for the bad redaction.
Originally posted by @zbalkan in #3182 (comment)