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.
{ "מקורות": [ { "חבילות": [
] } ] }
דוגמה בלבד. 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 tinyPackageIdentifierwinget import -i C:\Setup\apps.json --accept-package-agreements --accept-source-agreements --ignore-unavailable--ignore-unavailable מאפשר לייבוא להמשיך מעבר לכל חבילה שהוסרה מהקטלוג במקום לעצור את כל הריצהsetup.bat ליד apps.json המכיל שורה אחת: winget import -i "%~dp0apps.json" --accept-package-agreements --accept-source-agreements --ignore-unavailable%~dp0 פירושו "התיקייה שבה נמצא קובץ האצווה הזה", כך שהזוג פועל מכל אות כונן עטKeep 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. עבור רוב אפליקציות המשרד העדכנית ביותר היא מה שאתה רוצה. If one app must stay on a specific version, remove it from the JSON and install it separately with winget install --id --version.
הפעל מחדש עם --ignore-unavailable כדי לדלג על חבילות לא זמינות במקום לעצור את הייבוא, ולאחר מכן בדוק את הסיכום שעל המסך עבור איזו חבילה נכשלה והתקן אותה באופן ידני.
כן. The JSON is just a list of package IDs, and winget exists on both. אותו קובץ מאסטר יכול להגדיר משרד מעורב.