Skip to content

Back up all your drivers before a clean install — via Microsoft Learn

Commandlow riskNeeds adminWindows 11Windows 10 (1607+)

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

  1. Use an elevated Command Prompt and a destination on a USB stick or another drive, not the disk you're about to wipe.
  2. 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:\DriverBackup
This copies files and changes nothing on the PC. To undo, delete the backup folder. Restore only drivers for the same hardware.

Sources

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.

driversbackuppnputilclean installreinstall

More in Setup & Install