Back up all your drivers before a clean install — via Microsoft Learn
pnputil can copy every third-party driver package in the Windows driver store to a folder. After a clean install you can put them all back in one go, which is a lifesaver when Wi-Fi or storage drivers aren't included in Windows.
Takes effect right away
The easy way
- Use an elevated Command Prompt and a destination on a USB stick or another drive, not the disk you're about to wipe.
- After reinstalling Windows, restore them with
pnputil /add-driver D:\DriverBackup\*.inf /subdirs /install.
Command
Run in an administrator Command Prompt / Terminal window.
mkdir D:\DriverBackup
pnputil /export-driver * D:\DriverBackupThis copies files and changes nothing on the PC. To undo, delete the backup folder. Restore only drivers for the same hardware.
Sources
- PnPUtil command syntax — by Microsoft Learn
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me
Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.