How-To Guides6 min read

How to Back Up, Migrate, and Bulk-Update Windows 11 Apps with WinGet

Export your installed Windows applications into a portable JSON manifest, clean out unwanted entries, restore your stack on a fresh Windows 11 install, and audit bulk upgrades safely with WinGet.

To migrate or back up Windows 11 applications with WinGet, run winget export -o apps.json on the source PC, edit the generated JSON to remove unwanted apps, copy the file to the new machine, and run winget import -i apps.json --ignore-unavailable. Before running winget upgrade --all afterward, inspect pending updates with winget upgrade alone.

Key takeaways

  • Treat winget export output as a starting inventory that should be pruned before importing on a clean PC.
  • Use --ignore-unavailable on import so one unmatched OEM driver utility does not halt the entire restore.
  • Always run winget upgrade without flags before winget upgrade --all to catch side-by-side or unknown-version installers.

Quick facts

  • WinGet ships inbox on Windows 11 and modern Windows 10 builds through the App Installer system component.
  • winget export writes a JSON file containing Sources, Packages, PackageIdentifier, and optional Version entries.
  • By default, winget import installs the latest manifest version unless --include-versions was used on export without --ignore-versions on import.
  • Running winget upgrade without arguments previews pending updates before winget upgrade --all runs installers.

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.

WinGet migration pipeline showing export, JSON pruning, import, and upgrade verification
WinGet migration pipeline showing export, JSON pruning, import, and upgrade verification

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 export only 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.

POWERSHELL
winget --version
winget source list

Next, 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.

POWERSHELL
winget list

Expected 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.

POWERSHELL
winget export -o "$HOME\Desktop\apps.json" --accept-source-agreements

If you specifically want exact versions recorded in the manifest, run this variant instead:

POWERSHELL
winget export -o "$HOME\Desktop\apps-pinned.json" --include-versions --accept-source-agreements

Expected 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:

POWERSHELL
winget import -i "$HOME\Desktop\apps.json" --ignore-unavailable --no-upgrade --accept-package-agreements --accept-source-agreements

Add --ignore-versions if your exported manifest includes pinned versions and you want the latest catalog versions instead:

POWERSHELL
winget import -i "$HOME\Desktop\apps.json" --ignore-unavailable --ignore-versions --accept-package-agreements --accept-source-agreements

Expected 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.

POWERSHELL
winget list --upgrade-available
winget upgrade

Inspect 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:

POWERSHELL
# 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-agreements

Note 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

SymptomLikely causeFix
Export omits a critical app with a warningNo matching manifest in configured sources or missing Add/Remove Programs metadataRecord the vendor installer manually outside apps.json
winget import stops or errors on a missing packagePackage removed from winget source or region-restrictedRe-run with --ignore-unavailable or delete the entry from apps.json
Source agreement prompt blocks unattended runFirst-time execution without license flagsPass --accept-source-agreements and --accept-package-agreements
Installed package keeps older version alongside new oneInstaller manifest lacks uninstallPrevious behaviorTest winget upgrade --id <PackageId> --uninstall-previous or uninstall the old entry first
Package does not appear in winget upgrade --allCurrent version reads as unknown or package is pinnedInspect 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.

Sources