Skip to content

Instantly share code, notes, and snippets.

@nouseforname
nouseforname / Get-Updates.ps1
Last active December 8, 2024 14:44
Powershell filter winget upgrade
# add id to skip the update
$skipUpdate = @(
'Microsoft.DotNet.SDK.6',
'Microsoft.WindowsSDK'
)
# object to be used basically for view only
class Software {
[string]$Name
@alkampfergit
alkampfergit / winget-upgrade.ps1
Last active December 8, 2024 12:57
Winget upgrade output parsed into a real Powershell Object
class Software {
[string]$Name
[string]$Id
[string]$Version
[string]$AvailableVersion
}
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$upgradeResult = winget upgrade | Out-String