Why I keep a pruned WinGet manifest instead of chasing installers
Every time I rebuild a Windows workstation or move a user off an aging Windows 10 installation onto a clean Windows 11 setup, the operating system install itself takes less than half an hour. Rebuilding the application layer by hand is what eats the afternoon: hunting down vendor download pages, clicking past bundled updaters, and forgetting which runtime libraries were already installed.
WinGet (the Windows Package Manager, distributed inside the Microsoft App Installer system component) solves most of that tedium with two commands: winget export and winget import. It is not a full disk image, and it will not capture proprietary apps that have no catalog manifest or store local configuration files inside %AppData%. For the core developer and productivity stack, though, I prefer maintaining a small JSON manifest in cloud storage or a Git repository over clicking through thirty setup wizards. If you rely exclusively on niche commercial software distributed outside public or private WinGet repositories, I would skip relying on winget import alone and pair it with an offline installer folder.
Diagram: Original vector workflow authored for Tech Oblivion (CC BY 4.0), based on Microsoft Learn WinGet command documentation.
Prerequisites and safety checks
Before touching your application inventory, verify that WinGet is active and understand what export and import actually touch.
- Operating system: Windows 11 or a supported modern Windows 10 build with App Installer installed from Microsoft Store.
- Shell permissions: Standard user PowerShell or Command Prompt works for listing and exporting, while an elevated terminal (Run as administrator) avoids repeated User Account Control prompts during bulk installs or system-wide upgrades.
- Storage backup:
winget exportonly records package identifiers and optional version strings. Back up your%AppData%,%LocalAppData%, SSH keys, and browser profiles separately before wiping a drive.
Important: Do not treat winget export as a backup of application data or licenses. It exports a JSON list of package identifiers matched against configured WinGet sources, not your personal settings or installer binaries.Step-by-step WinGet backup and restore workflow
Step 1: Verify WinGet and inspect installed packages
Open Windows Terminal (PowerShell or Command Prompt) on your source PC and confirm the installed WinGet version and source availability.
winget --version
winget source listNext, review everything currently detected on the machine. Per Microsoft's documentation for the list command, WinGet displays both packages installed via WinGet and applications installed by other installers that match Add/Remove Programs metadata.
winget listExpected result: You see a table listing Name, Id, Version, Available (when an update exists), and Source. Applications that were installed manually outside WinGet often appear without a Source column value; keep that in mind when exporting.
Step 2: Export your current applications to JSON
Generate your baseline package list. If you want the destination machine to pull the newest compatible releases, export without version pinning. If you need reproducible builds across a team, add --include-versions.
winget export -o "$HOME\Desktop\apps.json" --accept-source-agreementsIf you specifically want exact versions recorded in the manifest, run this variant instead:
winget export -o "$HOME\Desktop\apps-pinned.json" --include-versions --accept-source-agreementsExpected result: WinGet writes a JSON file containing Sources and Packages arrays. Any installed app that WinGet cannot match against a configured source triggers a console warning and is omitted from the JSON output.
Step 3: Edit the JSON manifest before you migrate
This is the step most guides skip, and it is the one that prevents headaches on a clean OS. Open apps.json in Notepad or VS Code and prune it deliberately.
Microsoft's export reference explicitly notes that you can edit the resulting JSON to remove applications you do not want to import later. Look for OEM utilities, printer suites, preinstalled trialware, and duplicate runtime entries that Windows 11 or Windows Update will already provide. Keep only the explicit PackageIdentifier entries you genuinely want reinstalled.
If you exported with --include-versions on an older PC, confirm whether any pinned Version fields are outdated. Leaving old version strings in the JSON causes winget import to try fetching those older versions unless you pass --ignore-versions on import.
Step 4: Restore applications on the target Windows 11 PC
Copy your cleaned apps.json file to the destination Windows 11 machine (via OneDrive, a network share, or a USB drive). Open an elevated Windows Terminal session so installers that target machine-wide directories do not stall halfway through.
To install the packages cleanly while skipping anything unavailable or already current, run:
winget import -i "$HOME\Desktop\apps.json" --ignore-unavailable --no-upgrade --accept-package-agreements --accept-source-agreementsAdd --ignore-versions if your exported manifest includes pinned versions and you want the latest catalog versions instead:
winget import -i "$HOME\Desktop\apps.json" --ignore-unavailable --ignore-versions --accept-package-agreements --accept-source-agreementsExpected result: WinGet processes the Packages array serially, downloads each installer from its configured source, verifies hashes, and installs each application in turn. Any package already installed triggers a notification rather than failing the run when --no-upgrade is set.
Step 5: Preview and run bulk upgrades safely
Once your machine is up and running (or on an existing PC you want to bring current), resist the urge to jump straight to winget upgrade --all. In my workflow, previewing first avoids surprise major-version jumps or side-by-side installs that leave old versions behind.
winget list --upgrade-available
winget upgradeInspect the list carefully. Notice any entries marked with Unknown in the current version column, or apps you intentionally pinned with winget pin. When the list looks safe, apply updates either selectively or in bulk:
# Preferred for precision on critical tools
winget upgrade --id Microsoft.PowerToys --accept-package-agreements --accept-source-agreements
# Bulk update for remaining standard packages
winget upgrade --all --accept-package-agreements --accept-source-agreementsNote that Microsoft's upgrade documentation points out two important edge cases: packages that do not report an installed version are skipped by --all unless you pass --include-unknown, and pinned packages are skipped unless you pass --include-pinned. Also, if an installer upgrades side by side instead of replacing the older version, check --uninstall-previous behavior per package rather than assuming cleanup happens automatically.
Troubleshooting common WinGet migration failures
| Symptom | Likely cause | Fix |
|---|---|---|
| Export omits a critical app with a warning | No matching manifest in configured sources or missing Add/Remove Programs metadata | Record the vendor installer manually outside apps.json |
winget import stops or errors on a missing package | Package removed from winget source or region-restricted | Re-run with --ignore-unavailable or delete the entry from apps.json |
| Source agreement prompt blocks unattended run | First-time execution without license flags | Pass --accept-source-agreements and --accept-package-agreements |
| Installed package keeps older version alongside new one | Installer manifest lacks uninstallPrevious behavior | Test winget upgrade --id <PackageId> --uninstall-previous or uninstall the old entry first |
Package does not appear in winget upgrade --all | Current version reads as unknown or package is pinned | Inspect with winget list --upgrade-available and decide whether --include-unknown is safe |
Verification checklist after import
After winget import or winget upgrade --all finishes, run winget list again and confirm your core tools show their expected version numbers. Open a fresh terminal window before testing newly installed CLI tools so any updated PATH environment entries take effect.
