Skip to content

Instantly share code, notes, and snippets.

@max-peter
Created July 5, 2022 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save max-peter/24f6cd665fb69304ba37d7169c84aff3 to your computer and use it in GitHub Desktop.
Save max-peter/24f6cd665fb69304ba37d7169c84aff3 to your computer and use it in GitHub Desktop.

Windows Package Manager | Microsoft Docs

See which apps you can install with Winget commands - Virtualization Howto

winget search | sort

Managing installed apps in Windows with Winget

https://blogs.msmvps.com/bsonnino/2021/06/26/managing-installed-apps-in-windows-with-winget/

winget source list

Windows Package Manager (Winget) Cheat Sheet | Adam Dimech's Coding Blog

winget list -s winget

Managing Packages in Windows with winget | stevenschwenke.de

Create a file named "winget-upgrade.bat" with the following content in some script- or tool folder:

  1. @ECHO OFF

  2. ECHO Executing winget upgrade ...

  3. ECHO:

  4. winget upgrade | findstr /r /v /c:"Microsoft"

  5. ECHO:

  6. ECHO Please upgrade the packages above manually with "winget upgrade ID-of-app".

  7. ECHO:

  8. ECHO (This scheduled task can be removed in the Windows Task Scheduler)

  9. PAUSE

The line beginning with "winget" executes winget to show the list of packages with upgrades available. Using "findstr", this list is filtered so it includes nothing with "Microsoft" in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment