WinGet upgrade Command: How to Safely Update Windows Packages

watch 5m, 21s
views 2

15:42, 23.11.2026

Article Content
arrow

  • Background and Evolution
  • Setup and Requirements
  • Availability Check
  • Manual Installation
  • Essential Commands
  • ​Managing Repositories and Manifests
  • Workflow Examples
  • Routine Workstation Maintenance
  • Developer Laptop Provisioning
  • CI Build Agent Refresh
  • Enterprise Use Cases
  • Security Notes
  • Troubleshooting Guide
  • WinGet vs Chocolatey vs Scoop
  • Best-Practice Guidelines
  • What’s Next
  • Final Thoughts

WinGet is a helpful command-line client that is needed for the removal, installation, and upgrade of apps on Windows Server 2025, Windows 11, and 10. With the usage of relatively short commands, you can conduct lots of daily tasks more simply without the necessity of manual downloads, complicated wizards, and more.

Background and Evolution

The Windows package manager was introduced as an open-source project on GitHub, and initially, it was mainly oriented towards tasks connected with upgrades and installation processes. Version 1.0 was launched in the middle of 2021, and since that period, users have had access to pinned versions, private feeds, locale filtering, and more. Currently, there are more than 4,000 packages in the default source.

Setup and Requirements

Most users already have WinGet, as it is a component of App Installer.

Availability Check

To check the availability, you should use the following command:

winget –info

If the output of this command includes the version of WinGet, then everything is already installed. If not, you can install it from the Microsoft Store.

Manual Installation

If, for some reason, you don’t want or cannot use Store, then you can complete the process manually. Start by downloading Microsoft.DesktopAppInstaller_*.msixbundle and dependency packages. After that run:

$packages = @(

    "Microsoft.VCLibs.x64.14.00.Desktop.appx",

"Microsoft.UI.Xaml.2.8.x64.appx",

    "Microsoft.DesktopAppInstaller_*.msixbundle"

)

foreach ($pkg in $packages) {

Add-AppxPackage $pkg

}

Essential Commands

Function

Command

Explanation

Search software

winget search <term>

Discover tags, names, descriptions, and Id.

View details

winget show <Id>

View links, switches, and version.

Upgrade an app

winget upgrade <Id>

Used for the update of one specific package.

Upgrade all apps

winget upgrade –all –

Upgrade all that is on the machine.

Upgrade report

winget upgrade

Shows the list of available updates.

Configuration

winget configure –file dev.wpkg.yaml

Applies settings and installs packages at once.

Remove

winget uninstall <Id>

Opens the uninstaller.  

Install

winget install <Id>

By default, it is silent; if you need an installer UI, you should use interactive.

Inventory listing

winget list

List every registered program.

Export manifest

winget export -o packages.json

Save the inventory for the following import.

Import manifest

winget import packages.json

Creates an identical environment.

​Managing Repositories and Manifests

According to the default setting, the public catalog is in https://winget.azureedge.net/cache. To add additional feeds, use the following command:

winget source add --name Contoso --arg https://packages.contoso.local/index.json --authorization EntraID

This format is identical to the public and private repositories. Every manifest should include:

-        Id – identifier.

-        Installer SHA-256 and URL.

-        Dependencies and silent switches.

Workflow Examples

Routine Workstation Maintenance

winget upgrade --include-unknown –all

Run it from a PowerShell prompt every morning. By doing so, editors, firmware, and browsers stay current.

Developer Laptop Provisioning

winget import C:\configs\devbox.json

winget configure C:\configs\devbox.wpkg.yaml

The YAML file includes config files, registry keys, and fonts, whereas the JSON file includes Docker Desktop, Visual Studio Code, and PostgreSQL.

CI Build Agent Refresh

With the pipeline, the clean VM (virtual machine) is started.

- powershell: |

winget install --id Git.Git --accept-source-agreements --accept-package-agreements

winget install --id Python.Python.3.12 --accept-source-agreements --accept-package-agreements

winget install --id Nodejs.Node.LTS --accept-source-agreements --accept-package-agreements

winget pin add --id Git.Git --version 2.45.0

Enterprise Use Cases

  • Golden image maintenance. Admins mount a Windows image offline, and then add App Installer, run winget, and use cumulative updates. Then this frozen image reaches deployment with the apps already installed, and that saves bandwidth on first boot.
  • Fleet patch management. Group Policy schedules a task on each machine, and that calls winget upgrade –all –include-unknown. The results are passed to the Azure Monitor via a custom log parser. Then those machines that missed their window are flagged.
  • Secure development station. Security build lab fixes SDKs and compilers. The default source is disabled, and the private feed is enabled. Before merging, analysts check each incoming manifest.  

Security Notes

  • Pinning. Locks crucially important apps before the versions are tested, and manual review allows upgrades.
  • Hash verification. Machine downloads SHA-256, WinGet – installer, and this information is compared with the manifest. In case the number is variable, the operation stops.
  • Group policy controls. Admins can limit access only to the specific list, block certain features, and force elevation.
  • SmartScreen reputation. Installers go through the usual reputation checks.
  • Signed packages. MSIX fully relies on digital signatures, while EXE and MSI files can use signatures, but most rely on a hash.

Troubleshooting Guide

Problem

Explanation

Method of fixing

The app cannot be found in the search

No manifest from the publisher

Write a request on GitHub or a private manifest

The installer cannot function with exit code 1223

User closed the installer window or UAC prompt

Rerun from the elevated shell

Silent install hangs

Manifest doesn’t have a quiet switch

Use the interactive installer or add the correct switch in the custom manifest

Duplicates in the list

The previous version is left registered

Uninstall the old version

The package is old, even after the upgrade

It is pinned

winget pin remove <Id> and only then upgrade


WinGet vs Chocolatey vs Scoop

Factor

Scoop

Chocolatey

WinGet

The size of the default catalog

1,100

9,500

4,300-10,000

Types of installers

Portable archives

EXE, MSI, script mix

ZIP, EXE, MSI, MSIX

Common type of users

Developers who require portable tools

Automation engineers

Regular users and admins

Hash required

Optional

Optional

Always

Policy integration

Manual

Licensed Chocolatey for business

Entra ID feeds, Group Policy templates

Available GUI

Less effort from the community

Chocolatey GUI

WingetStore, WinGetUI

Best-Practice Guidelines

  • Manifests should be stored in the version control. Exported package lists and config files should be treated as code.
  • Explicitness of scripts. Exclude vague search terms in the automation and write full version pins and ID strings.
  • Test new versions. If there are no issues with the pilot PCs, go to the next ring. If there are some troubling apps, pin them until there is a proper fix.
  • Upgrade before the backups. The latest patches should be included in the backup.
  • Auditing of the private feeds. Internal packages should be hash checked and code signed.  

What’s Next

Here is a future roadmap:

  • Delta updates: only changed blocks will be downloaded, cutting bandwidth for large apps.
  • Simpler feed templates: because of a public schema for static JSON, teams will be able to publish manifests with minimal setup.
  • Installer rollback: automatic rollback will be used in case the new version fails health checks.

Final Thoughts

WinGet is an awesome option that offers a one-step software management process. For all the regular users, this variant will be a fantastic choice for minimizing a lot of unnecessary steps, and for the professionals, it will give automation of fleet upgrades, locking images to exact versions, and more.

Share

Was this article helpful to you?

VPS popular offers

sale

-20.5%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
8 TB
KVM-SSD 8192 Metered Linux

€ 57 /mo

€
/mo

Billed annually

sale

-20.1%

CPU
CPU
3 Xeon Cores
RAM
RAM
1 GB
Space
Space
40 GB HDD
Bandwidth
Bandwidth
Unlimited
KVM-HDD 1024 Linux

€ 5.92 /mo

€
/mo

Billed quarterly

-10%

CPU
CPU
6 Epyc Cores
RAM
RAM
8 GB
Space
Space
100 GB NVMe
Bandwidth
Bandwidth
Unlimited
aiKVM-NVMe 8192 Linux

€ 28.47 /mo

€
/mo

Billed annually

sale

-20%

CPU
CPU
6 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
Unlimited
wKVM-SSD 8192 Windows

€ 28.44 /mo

€
/mo

Billed monthly

sale

-20%

CPU
CPU
4 Xeon Cores
RAM
RAM
4 GB
Space
Space
100 GB HDD
Bandwidth
Bandwidth
300 Gb
wKVM-HDD HK 4096 Windows

€ 18 /mo

€
/mo

Billed monthly

sale

-20%

CPU
CPU
4 Epyc Cores
RAM
RAM
4 GB
Space
Space
50 GB NVMe
Bandwidth
Bandwidth
Unlimited
wKVM-NVMe 4096 Windows

€ 18.1 /mo

€
/mo

Billed semiannually

-10%

CPU
CPU
6 Epyc Cores
RAM
RAM
8 GB
Space
Space
100 GB NVMe
Bandwidth
Bandwidth
Unlimited
Keitaro KVM 8192
OS
CentOS
Software
Software
Keitaro

€ 28.99 /mo

€
/mo

Billed annually

sale

-20%

CPU
CPU
4 Xeon Cores
RAM
RAM
4 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
Unlimited
wKVM-SSD 4096 Windows

€ 18.65 /mo

€
/mo

Billed monthly

sale

-20%

CPU
CPU
4 Xeon Cores
RAM
RAM
8 GB
Space
Space
100 GB SSD
Bandwidth
Bandwidth
Unlimited
10Ge-KVM-SSD 8192 Linux

€ 115.5 /mo

€
/mo

Billed semiannually

sale

-20%

CPU
CPU
2 Epyc Cores
RAM
RAM
1 GB
Space
Space
10 GB NVMe
Bandwidth
Bandwidth
Unlimited
KVM-NVMe 1024 Linux

€ 6.89 /mo

€
/mo

Billed quarterly

Other articles on this topic

Setting up a reverse proxy
Setting up a reverse proxy
cookie

Accept cookies & privacy policy?

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the HostZealot website.