A new PC should not mean an evening of download pages. Export your app list once, and every future PC rebuild becomes a single command.
Winget can write your installed apps to a JSON file and read that file back on another machine. That pair of commands - export on the old PC, import on the new one - is the closest thing Windows has to a one-command setup. This guide covers the clean workflow, how to trim the file, and how to wrap it in a batch file so the whole setup starts with a double-click.
{ "Sources": [ { "Packages": [
] } ] }
Example only. The real file is plain text - open it in Notepad and delete any app you do not want on the new PC.
winget export -o C:\Setup\apps.json (create the folder first, or use your Desktop path)apps.json to a pen drive or your cloud folder - it is tinyPackageIdentifier linewinget import -i C:\Setup\apps.json --accept-package-agreements --accept-source-agreements --ignore-unavailable--ignore-unavailable lets the import continue past any package that has been removed from the catalogue instead of stopping the whole runsetup.bat next to apps.json containing one line: winget import -i "%~dp0apps.json" --accept-package-agreements --accept-source-agreements --ignore-unavailable%~dp0 means "the folder this batch file is in", so the pair works from any pen drive letterKeep the pair on your toolkit pen drive and update the export every few months as your standard app set changes.
The video builds this exact export-import setup live and times it against installing the same apps by hand.
▶️ Watch Full VideoBy default import installs the latest version of each package. For most office apps latest is what you want. If one app must stay on a specific version, remove it from the JSON and install it separately with winget install --id --version.
Re-run with --ignore-unavailable so unavailable packages are skipped instead of halting the import, then check the on-screen summary for which package failed and install that one manually.
Yes. The JSON is just a list of package IDs, and winget exists on both. The same master file can set up a mixed office.