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.

Updated

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…
Category
PowerShell
Level
Journeyman
Tags
convertto-json, JSON, operating-system, powershell, winget, winget-export, winget-import