Skip to content

Remediation script #2593

Discussion options

You must be logged in to vote

You don't need UniGetUI - you can do that directly with winget powershell's module.
Or if you prefer chocolatey or scoop, use that instead.

What UniGetUI is doing is provide a UI to the underlying command line tools that you can already use.

Example code to collect the installed packages and list which are ready for updates:

$wgupd = Get-WinGetPackage -OutVariable wglist | Where-Object { $_.IsUpdateAvailable }
Write-Host "Packages $($wglist.Count); Updates $($wgupd.Count)"
$wgupd | Sort-Object Name

And then update everything except packages that match either 'not-this-package' or 'bad-name'

$wgupd | Where-Object Id -NotMatch 'not-this-package|bad-name' | Update-WinGetPackage -Verbose

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@everartaraujo
Comment options

Answer selected by marticliment
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants