Upgrading your Windows programs with winget

Windows Update keeps Windows itself up to date, but not most of the programs you have installed. winget, the package manager that comes with Windows, can upgrade most of them in one go. This page goes through it step by step, including what to do when something fails.

Checked with winget 1.30.310 on Windows 11, 2026-11-20.

TL;DR

For readers who know winget and want a recap. New to winget? Start at step 0.

  1. See what can be upgraded: winget upgrade
  2. Optional, only if a program must stay at its version: winget pin add --id <Id> --exact
  3. Upgrade the rest: winget upgrade --all --accept-package-agreements --accept-source-agreements
  4. Stay at the computer and answer the UAC prompts.
  5. Run winget upgrade again: whatever is still listed didn't upgrade. Retry those one at a time with winget upgrade --id <Id> --exact
  6. Restart.

Wherever this page shows <Id>, put the program's Id from step 1 in its place, without the angle brackets.

0. Before you start

1. See what can be upgraded

winget upgrade

The first time, winget may ask you to agree to the terms of the Microsoft Store source. Type Y and press Enter.

You get a list like this one. Yours will show different programs.

Name                Id                    Version  Available Source
--------------------------------------------------------------------
7-Zip 26.05 (x64)   7zip.7zip             26.05    26.06     winget
Notepad++ (64-bit)  Notepad++.Notepad++   8.9.9    8.9.9.1   winget
2 upgrades available.

The following packages have an upgrade available, but require explicit targeting for upgrade:
Name    Id              Version  Available Source
-------------------------------------------------
Discord Discord.Discord 1.0.9219 1.0.9269  winget
3 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.

2. Optional: keep a program at its current version

This step is optional, and most people can skip it. Read through the list once. Is there a program on it that you know must not change? If nothing comes to mind, go on to step 3. You can come back to this later.

Yes, there is one: how to keep it as it is

Common reasons to keep a version:

Copy the program's Id from the list, and pin it:

winget pin add --id <Id> --exact

There are three kinds of pin:

winget pin add --id <Id> --exact
winget upgrade --all skips the program. You can still upgrade it by naming it: winget upgrade --id <Id> --exact.
winget pin add --id <Id> --exact --blocking
winget won't upgrade the program at all, not even by name, until you remove the pin.
winget pin add --id <Id> --exact --version "4.*"
Upgrades within version 4 are allowed, but not to version 5.

winget pin list shows your pins, and winget pin remove --id <Id> --exact removes one.

A pin only stops winget. If the program updates itself, also turn off automatic updates in the program's own settings.

Pins are kept, so next time you only need to check whether anything new on the list needs one. Microsoft's documentation of the pin command has the details.

3. Upgrade the rest

winget upgrade --all --accept-package-agreements --accept-source-agreements

For each program, winget prints something like this:

Found 7-Zip [7zip.7zip] Version 26.06
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://…/7z2606-x64.exe
Successfully verified installer hash
Starting package install...
Successfully installed

The two lines about licenses come with every program and are nothing to worry about. "Successfully verified installer hash" means the download is exactly the file winget expected.

Options left out on purpose:

Microsoft's documentation of the upgrade command lists all of its options.

4. Stay at the computer and answer the UAC prompts

Many installers need administrator rights, and each one asks for them with its own User Account Control (UAC) prompt: "Do you want to allow this app to make changes to your device?" winget warns you just before, with "The installer will request to run as administrator. Expect a prompt." It waits until you answer, so this isn't something to start and walk away from. It takes a while, too: on the PC this page was checked on, about twenty programs took about a quarter of an hour.

Why not run the terminal as administrator, to skip the prompts? Some programs refuse to be installed that way. And each prompt is a chance to see what is asking for full control of your computer.

5. Find what failed, and fix it

When winget has finished, list the upgrades again:

winget upgrade

Whatever is still in the main list didn't upgrade. Try those one at a time, so that each one's error is easy to read:

winget upgrade --id <Id> --exact

The most common failures, and what to do about them:

The program is running
Installers often fail while their program is open. Close it, including its icon by the clock, and try again.
The download fails with "Not found (404)"
The publisher has moved the file, and winget's record of the program still points to the old place. Volunteers and publishers keep these records up to date in the winget-pkgs repository, so try again in a few days, or download the new version from the publisher's website.
The installer hash doesn't match
The download isn't the file winget's record expects, usually because the publisher replaced it. Try again in a few days. Don't use --ignore-security-hash: this check is what protects you from a tampered download.
"A newer version was found, but the install technology is different"

The new version comes with a different kind of installer, so winget won't install it over the old one. --all skips these programs, which is why they're still on the list. Uninstall the program and install it again:

winget uninstall --id <Id> --exact
winget install --id <Id> --exact

Uninstalling may remove the program's settings, so check first if they matter to you. PowerShell 7 (Microsoft.PowerShell) is a common case: close its windows and do this one from Command Prompt, as you can't uninstall the shell you're typing in.

If the uninstall says "No installed package found matching input criteria" although the program is on the list, use its name, exactly as the list shows it: winget uninstall --name "<Name>" --exact.

"Installer failed with exit code" and a number
The program's own installer failed. Restart the computer and try once more. If it still fails, upgrade the program from its own menu (many have Check for updates) or from the publisher's website. Searching for the program's name with the exit code often finds the cause. A code that starts with 0x8A15 is winget's own, and winget's list of return codes explains it.
It asks for a restart
Restart, then go through this step again.
It upgraded, but comes back on the list every time
winget misreads the version of that program. It's harmless. To stop seeing it, pin it.

If a program fails twice in a row, a third try rarely helps. Upgrade what's left from the program itself, or from the publisher's website.

For a closer look at a failure, add --verbose-logs to the command. --open-logs opens the folder with winget's logs. Microsoft's troubleshooting guide explains what's in them.

6. Restart, and repeat now and then

Restart the computer at the end, as some upgrades only finish then. Do it all again every month or so. If you pinned any programs, the pins are kept, so the next time is quicker.

What winget doesn't cover

References

Links checked 2026-11-23.