Install any app from the command line with winget
Use Windows Package Manager to install, search, and upgrade thousands of applications from the community repository in one command.
01Command
$ winget install --id Microsoft.PowerToys -e --source winget02What it does
The `-e` (exact) flag prevents fuzzy matches like installing "Notepad" when you wanted "Notepad++", so always pair it with a full `--id`. Find exact IDs with `winget search keyword --source winget`; prefer the `winget` source over `msstore` for scriptable silent installs. Most installers run silently by default; add `-h` for headless where supported, and `winget list` shows everything installed regardless of how it arrived. Keep machines patched with a single `winget upgrade --all` in a scheduled task.
03Risk
04Undo
$ winget uninstall --id Microsoft.PowerToys -e05Sources
- Install winget | Microsoft LearnEvidence: Microsoft documents winget as the Windows Package Manager client, installed via the App Installer package, supporting commands such as install, uninstall and upgrade.
- Windows Package Manager (winget) documentationEvidence: Microsoft's winget documentation describes searching, installing and upgrading applications from configured sources like winget and msstore.
Last verified: 2026-09-17 · Category: System & Settings
06Related solutions
Use the System File Checker to verify every protected Windows system file against known-good copies and automatically replace the damaged ones.
Understand PowerShell's execution policy scopes and set the one that lets you run your own local scripts without gutting the security model.
Robocopy is Windows' built-in robust file copier: use /MIR to keep a destination folder as an exact one-way mirror of a source, resumable and restartable.