# A New PC from One File: \`winget export\` and \`import\`

winget export writes the list of apps on a PC to a JSON file, which PowerShell can read and change with ConvertFrom-Json and ConvertTo-Json -Depth, and winget import installs every app on the list on a new PC in one command.

![Cheat sheet for the lesson A New PC from One File: \`winget export\` and \`import\`: winget export writes the list of apps on a PC to a JSON file, which PowerShell can read and change with ConvertFrom-Json and ConvertTo-Json -Depth, and winget import installs every app on the list on a new PC in one…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/45637dd681b0489faa68a483b199f270.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: convertto-json, JSON, operating-system, powershell, winget, winget-export, winget-import
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-winget-export-cheat-sheet
