How to Update All Apps on a Windows Device with Winget

IT technician relaxing with a coffee while a laptop updates in teal and amber light

Keeping every app on a Windows device up to date is one of those jobs everyone agrees matters and nobody enjoys. Browsers, PDF readers, runtimes, utilities, each with its own updater, or none at all. Out-of-date apps are also a favourite way in for attackers. The good news is that Windows already includes a tool that can update most of them in one hit. It’s called winget.

What is winget?

Winget is the command-line client for the Windows Package Manager. It lets you search for, install, upgrade and remove applications from the command prompt or PowerShell, using community and Microsoft sources. Think of it as one updater for many apps.

Step 1: Check winget is installed

On current versions of Windows 10 and 11, winget comes with the App Installer package from the Microsoft Store. Open Terminal or PowerShell and run:

winget --version

If you get a version number back, you’re good to go. If not, install or update App Installer from the Microsoft Store and try again.

Step 2: See what needs updating

Before changing anything, have a look. Running upgrade on its own lists every app with an update available, along with the installed and available versions:

winget upgrade

I always do this first. It’s a quick health check of a machine, and often a surprising one.

Step 3: Update everything

To upgrade every app that has an update available:

winget upgrade --all

For a hands-off run, add the switches that suppress prompts:

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

Here’s what those do:

  • --silent runs installers without showing their UI
  • --accept-package-agreements accepts app licence agreements so you aren’t prompted
  • --accept-source-agreements accepts the source agreements so you aren’t prompted
  • --include-unknown also upgrades apps whose current version winget can’t determine

That last one is worth knowing. Some apps don’t report a version, so winget skips them during --all unless you add --include-unknown.

Step 4: Update just one app

Sometimes you only want to update a single app. Grab its ID from the winget upgrade list and target it directly:

winget upgrade --id Microsoft.PowerToys

Step 5: Run it elevated

Many apps are installed for all users, so their installers need administrator rights. Run Terminal as administrator before running winget upgrade --all, otherwise you’ll be hit with UAC prompts or failures for machine-wide apps.

Step 6: Pin apps you don’t want touched

Not everything should update automatically. A line-of-business app might need a specific version, or a tool may need testing first. Winget handles this with pins:

winget pin add --id Microsoft.PowerToys

A standard pin excludes the app from winget upgrade --all but still lets you upgrade it deliberately. Add --blocking to stop upgrades altogether until the pin is removed, or --version with a wildcard, such as 0.70.*, to keep it within a version range. Use winget pin list to see current pins and winget pin remove to clear one.

Step 7: Schedule it

Running this by hand is fine for your own machine, but the real win is automation. On a single device, create a Task Scheduler task that runs the silent command with highest privileges on a regular schedule.

For managed fleets, I’d look at Intune instead. Intune remediations can run a detection script to check for available upgrades and a remediation script to apply them. One caution: winget is installed per user, so running it under the SYSTEM account needs extra care with how you call it. Test thoroughly on a pilot group before rolling out widely.

The MSP angle

For MSPs, winget is a simple way to close a common security gap across every client device. Third-party apps are often the forgotten part of patching, sitting outside Windows Update entirely. A standard winget routine, deployed through Intune and backed by pins for anything sensitive, gives you consistency without buying another tool.

It also makes a nice reporting story. A regular winget upgrade list shows clients exactly what was out of date and what you fixed. And if you’re using Copilot or other AI tools to help write and review scripts, winget commands are a great place to start because the syntax is clean and well documented.

Start with your own machine today. Run winget upgrade, see what turns up, and I suspect you’ll be convinced.

Leave a Reply