Use winget upgrade --all from Command Prompt or PowerShell to update apps that Windows Package Manager manages. If winget is missing, the package is not in Winget’s catalog, or an installer refuses silent mode, you need a different update path. Microsoft Support says the same commands work in Command Prompt and Windows PowerShell, and the Windows version matters only in the sense that Winget must be available through App Installer. (Microsoft Support)
Winget commands in command Prompt and PowerShell
Command Prompt and Windows PowerShell are console apps, and Microsoft says you can run winget commands in either one. On Windows 11, console windows may open in Windows Terminal depending on the system setting, but the Winget commands stay the same. You can also switch the default host back to Windows Console Host in Settings if needed. (Microsoft Support)
What you'll need
- Windows 11 or a supported Windows 10 release.
- The App Installer package, which provides
winget. - Command Prompt, PowerShell, or Windows Terminal.
- Administrator access for apps or installers that prompt for elevation.
- The app’s package ID if you plan to update one app only.
How do you update all apps at once?
Open a console, check which packages have updates, then run the all-app command. The safest path is to list updates first with winget upgrade, because that shows what Winget can currently update before anything changes. Then use winget upgrade -h --all to update every eligible package Winget manages, while hiding installer windows when the installer supports that mode.
- Open Command Prompt. Search Command Prompt from Start, then choose Run as administrator if you expect an installer to need elevation. Winget can run without elevation for some packages, but admin rights are sometimes required when an app or installer requests UAC approval.
- List available updates. Type
winget upgradeand press Enter. The command prints the apps Winget can update right now, so you can confirm the package list before you change anything. - Run the all-app update. Type
winget upgrade -h --alland press Enter. The-hswitch tells Winget to pass the installer’s hidden, non-interactive mode when the package supports it, while--allupdates every eligible package Winget manages. - Approve prompts. If a UAC prompt appears, choose Yes. Some installers still need admin approval even when Winget launches them from an elevated console.
If winget upgrade shows five updates, including Node.js and a chat app, winget upgrade -h --all can update both in one pass when Winget knows those packages and the installers accept hidden mode.
Can Command Prompt update every app?
No. Winget updates apps that are in its package catalog, but that coverage is not complete for every app type. Some Microsoft Store apps are supported, but not all Store apps are managed the same way, and many vendor-specific updaters still need the Store app or the publisher’s own installer.
| app source | eligible command | likely result | fallback method |
|---|---|---|---|
| Winget / Windows Package Manager package | winget upgrade or winget upgrade -h --all |
Appears in the update list and updates from the console | Winget |
| Microsoft Store app | winget upgrade may list it |
Supported only when Winget has that Store package entry | Microsoft Store |
| Vendor installer / desktop app | winget upgrade only if Winget tracks that package |
May not appear in Winget | In-app updater or manual download |
| Standalone tool with its own updater | No reliable Winget path | Winget often cannot manage it | In-app updater |
Winget update checklist
Use this checklist to decide whether Winget can update the app. Start with the package source, because source support is what determines whether Winget can list the app, update it silently, or skip it entirely. If the app is not in the catalog, fall back to the app’s own updater or the vendor installer.
| check | command or cue | expected outcome | fallback action |
|---|---|---|---|
| Winget is installed | winget upgrade |
Shows a version list or package results | Update App Installer in Microsoft Store |
| Package is in Winget | winget upgrade |
Target app appears in the list | Use the app’s updater if it is missing |
| One specific app | winget upgrade -h --id APP-ID |
Updates the exact package ID | Use the vendor installer or updater |
| Microsoft Store app | May appear in winget upgrade |
Only some Store packages are supported | Open Microsoft Store and update there |
| Installer needs UI | -h is not enough |
Silent mode may be rejected by the installer | Run without -h or use the vendor method |
| Package is not listed | No match in winget upgrade |
Winget cannot update it | Use the app updater or manual download |
What if winget fails?
If Winget fails, move to the next path based on the app source. Start with the command syntax, then fall back to the Store or the vendor’s updater. That keeps you from repeating the same command when the real issue is package support, installer behavior, or a missing App Installer package.
- Confirm Winget availability. Run
winget upgrade. If Command Prompt returns a “not recognized” message, open Microsoft Store and update App Installer, which is the package that provides Winget. - Check whether the app exists in Winget. If no packages appear, or the one you want is missing, Winget cannot update that app from the catalog. Use the app’s own updater or the vendor download instead.
- Update one package directly. Find the package ID in the
winget upgradelist, then runwinget upgrade -h --id APP-ID. Use the exact package ID, not the display name, because Winget matches on package identity. - Handle installer interruptions. If a UAC prompt appears or the installer opens its own dialog, approve the prompt or rerun without
-hwhen the package cannot install silently. - Treat partial failures as package-specific. If some apps update and one fails, retry only the failed package ID. The failure may be caused by the package, its installer, or a required reboot rather than Winget itself.
Suppose a video editor never appears in winget upgrade, but its site offers a new installer. That is not a Command Prompt problem. It is a source problem, so the clean fallback is the vendor download rather than another Winget pass.
How do I update all apps on Windows 10?
Use the same commands on a supported Windows 10 release: open Command Prompt or PowerShell from Start, run winget upgrade, then use winget upgrade -h --all for every eligible package. Microsoft Support says the console commands work in Command Prompt and PowerShell, so the Windows 10 path is the same once App Installer is present. (Microsoft Support)
- Open a console. Search Command Prompt from Start, then choose Run as administrator if the app may need elevation. Windows 10 and Windows 11 both accept the same Winget commands here.
- Check the update list. Run
winget upgradeto see which packages Winget can update. This keeps you from assuming every app is covered. - Update all eligible apps. Run
winget upgrade -h --all. If a package is not installed through Windows Package Manager, Winget skips it and you need another update method.
Common mistakes
The most common miss is using the right command in the wrong shell state. A plain console can work for many packages, but installers that require admin rights may stop at a UAC prompt. Another frequent mistake is expecting Winget to update a package it does not manage or to treat every Microsoft Store app the same way.
- Using
winget upgrade -h --allbefore checkingwinget upgrade. - Typing the display name instead of the exact package ID for a single-app update.
- Expecting Microsoft Store apps to always update through Winget.
- Running the command in a shell you cannot approve with UAC.
- Repeating Winget on a package that needs the vendor’s updater.
Frequently asked questions
What command updates all apps in winget?
winget upgrade -h --all updates all eligible Winget packages. If you only want to inspect the list, use winget upgrade without parameters first.
Do I need to run Command Prompt as administrator to update apps?
Not always. Some packages update without elevation, but admin rights may be required when the installer triggers UAC or writes to protected locations. Use an elevated console when you want the broadest compatibility.
Can Command Prompt update Microsoft Store apps too?
Sometimes, but not always. If winget upgrade lists the Store app, Winget can update it; if not, open Microsoft Store and use its app updates instead.
How to update node to latest version using cmd
Find Node.js in winget upgrade, then run winget upgrade -h --id APP-ID with Node’s exact package ID. If Winget does not list it, use the Node installer from the vendor or the app’s own updater if one exists.