↓ Skip to main content

PC Reinstall Kit

·922 words·5 mins· loading · loading ·
Zach Le
Author
Zach Le
Transforming my server rack into a jet engine

What this is
#

PC Reinstall Kit is a pair of Windows programs that live on a USB stick. The first backs up an old PC before a wipe: installed programs, drivers, devices, Windows settings, Wi-Fi networks, printers, browser data, app settings, and optionally personal files. The second runs on the fresh install and puts it all back, step by step. It’s for anyone reinstalling Windows who doesn’t want to spend the evening remembering what they had installed, and it replaces the personal new-PC checklist I used to work through by hand.

It’s written in PowerShell with a WPF window, and needs nothing beyond what Windows 10 and 11 already ship. Claude Code wrote the code. I defined what it should do, tested it on a real PC, and decided what shipped. The story of building it, including the four bugs that nearly sank it, is in the blog post PC Reinstall Kit: A USB Stick That Remembers Your Whole PC.

The source and releases are public at github.com/zle3/pc-reinstall-kit.

By the numbers
#

  • 4 releases in one day, from v1.0.0 to v1.1.0 on November 22, 2026.
  • 4,909 lines across three PowerShell scripts and two launchers.
  • About 90 Windows settings recorded, from dark mode and taskbar layout to mouse speed and fast startup.
  • 12 guided setup steps on the new PC, from getting internet working to a final checklist.

What it does
#

Back up the old PC. 1-BACKUP-OLD-PC.bat asks where to save, listing USB drives first, then records:

  • Every installed program, sorted into apps, games, launchers, drivers, and runtimes, with a flag on anything that probably needs a license key or deactivation first.
  • Exported drivers, so the network driver can go back on before the new install has internet.
  • Devices, Windows settings, saved Wi-Fi networks, printers, mapped drives, and VPNs.
  • Bookmarks, history, and extension lists for Chrome, Edge, Brave, Opera, and Vivaldi, plus full Firefox and Thunderbird profiles.
  • Settings for common apps such as VS Code, Outlook signatures, OBS scenes, and Sticky Notes.
  • Personal folders, if wanted, with the recommended ones already ticked.

The stick ends up holding the backup, a copy of the kit, and a “START HERE” file, so it doubles as the setup drive.

The backup window partway through: a step list with checkmarks on the left and a live log on the right
Backing up the old PC. Screenshots use made-up demo data.

Set up the new PC. 2-SETUP-NEW-PC.bat finds the backup on its own and walks through twelve steps: internet and drivers, Windows Update, reinstalling apps, browsers, files, settings, and a final checklist. Apps that Windows’ package manager (winget) knows are reinstalled automatically and ticked by default. Everything else is listed on an apps.html page with a download button per app.

The final checklist covers what Windows can’t safely change for you, such as privacy settings, notifications, and default apps, each with an “Open” button that goes straight to the right settings page, plus reminders for apps found on the old PC.

The checklist dialog with sections, checkboxes, and Open buttons
The guided checklist. Made-up demo data.

Every step asks before it changes anything, the highlighted button is always the recommended choice, and setup can be closed and resumed, even after a restart.

Architecture
#

  • Two entry points, one UI. Each .bat launcher starts a PowerShell script (Backup-OldPC.ps1 or Setup-NewPC.ps1) that shares a WPF interface (Kit-UI.ps1) with a step list, progress bars, and dialogs. If the window can’t open, both fall back to a text console.
  • Built-in tools only. Windows PowerShell 5.1 and winget, both part of current Windows, so there’s nothing to install first.
  • Resumable. Setup remembers where it was, so it can be closed at any point and picked up again, even after a restart.
  • Follows the system theme, light or dark.

Privacy
#

Everything stays on the drive, and nothing is uploaded anywhere. Because the backup contains private data such as Wi-Fi passwords and browser data, the last setup step offers to delete those files once everything works. Saved passwords in Chrome and Edge can’t be copied as files, since they’re tied to the old Windows install, so the backup walks the user through exporting them or turning on browser sync before the wipe.

Challenges, briefly
#

Each was a Windows quirk rather than a logic mistake, and each only showed up when running on a real PC:

  • A backup that backed itself up. Run from Downloads, the kit saved the backup inside a folder it was copying, nesting until the disk filled. Every copy now skips the backup folder, and running from C: points the user to a USB stick.
  • A console that looked like it was waiting for input. Clicking inside the classic console window starts text selection, which pauses the program until Enter is pressed. The kit disables that for its own window, and later moved to a real window anyway.
  • A report that never finished. In Windows PowerShell 5.1, lines read from a file carry hidden metadata that points back into PowerShell’s own internals, and the report step tried to serialize all of it. Storing the lines as plain text fixed it.
  • Name collisions. A helper function named H lost to PowerShell’s built-in h alias, and because variable names ignore case, a loop variable $b overwrote $B, the backup folder path.

Tech stack
#

PowerShell 5.1, WPF, winget, Batch, Windows 10 and 11, Claude Code, GitHub Releases.

Where it stands
#

Released and free to download from GitHub as pc-reinstall-kit.zip. Windows SmartScreen warns on first run because the scripts aren’t signed; “More info” and “Run anyway” gets past it. The checklist is a plain text file meant to be edited, so anyone can make it match their own setup.