Created
October 21, 2022 15:41
-
-
Save uyriq/bfd66ab7d42a455a3cc2c175b7b818ef to your computer and use it in GitHub Desktop.
a powershell oneliner way to upgrade all upgradeable packages with winget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$pattern = "\b[A-z]+\.[A-z]+"; winget upgrade --include-unknown |Select-String -Pattern $pattern -All | % { $_.Matches } | % { winget upgrade $_.Value } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment