- Create and restore driver backups safely with PnPUtil and DISM.
- Integrates drivers into a WIM image for clean installs.
- Avoid conflicts: Review, clean, and verify OEM .inf packages.
- Complements the driver backup with a complete system image.
When you've been using the same PC for years, installing and uninstalling programs, and accumulating updates and patches, takes its toll: sometimes the most practical solution is a clean install. The problem is that this fresh start also wipes out your drivers. Having a reliable backup of your drivers saves you hours of searching on manufacturer websites and prevents unpleasant surprises with devices that stop working.
This guide provides a comprehensive approach to creating driver backups in Windows using native tools (PnPUtil and DISM), how to quickly restore them after formatting , and even an advanced method for integrating them into a Windows image and creating an installer that already includes your drivers. You'll also learn how to clean up old drivers, common problems you might encounter, and which third-party software is worth considering (and when to avoid it).
What is a driver and why should you take care of it?
A driver is the small piece of software that allows the operating system to communicate with the hardware. Without this "glue," a graphics card, network card, or integrated audio wouldn't know how to function. That's why having the correct and up-to-date drivers is crucial for performance, stability, and security.
Not all drivers are distributed the same way. You'll find .inf formats (direct installation from an INF file with its binaries), packaged .exe or .msi files (installers with wizards), and a critical group called boot-critical (graphics and storage, among others) without which Windows won't even start. This last group deserves special attention before any formatting or major upgrade.
Where Windows stores drivers
Windows centralizes drivers in the system repository: C:\Windows\System32\DriverStore . The FileRepository contains the signed packages that the system uses to install and reinstall drivers. Over time, older, unused versions can accumulate, so it's a good idea to carefully review and, if necessary, remove any obsolete drivers before or after creating your backup.
In addition to the repository, Device Manager lets you check the status, versions, and associated files for each device. From there, you can update, roll back, disable, or uninstall drivers, but always with caution: modifying the wrong driver can cause widespread malfunctions, especially if it affects key components.
Method 1: Quick Backup with PnPUtil
PnPUtil is a command-line utility included with Windows that allows you to list, export, add, and remove drivers from the repository . It's ideal for a simple, portable backup, perfect before formatting.
Recommended steps
1) Open PowerShell or Command Prompt as Administrator (Windows + X > Windows PowerShell (Admin) or Terminal (Admin)).
2) Choose an external drive or USB flash drive and create a destination folder (preferably in the root directory for easy location). For example, if your drive is E:, you can run:
E:
mkdir Drivers
cd Drivers
3) Export all drivers from your system to the current folder with:
pnputil /export-driver * ./
With that single command, Windows will copy all the packages from the DriverStore to your folder. This method is quick and effective , and it allows you to carry the drivers with you to reinstall them later.
List, delete, and add drivers with PnPUtil
– To view the third-party drivers present in the repository:
pnputil /enum-drivers
– To remove a specific driver (for example, oem6.inf ):
pnputil /delete-driver oem6.inf
– To add a controller from an INF file (useful if you want to restore a specific one):
pnputil /add-driver C:\Drivers\MiDriver\driver.inf
– To add from a folder with subfolders and attempt to install it immediately:
pnputil /add-driver C:\Drivers\ /subdirs /install
Removing drivers should be done with caution: first check with `/enum-drivers` which package it is and whether it's in use. The advantage of having exported beforehand is that, if you make a mistake, you can reload the driver without problems.
Method 2: Backup and Restore with DISM
DISM (Deployment Image Servicing and Management) is the Swiss Army knife for Windows images. Among its functions, it allows you to export system drivers and re- inject them in bulk during an online or offline installation.
Export current drivers
1) Create the destination folder on a drive other than the system drive (for example, J:\\Drivers) to avoid conflicts and keep it safe.
2) In an administrator console, run:
dism /online /export-driver /destination:J:\Controladores
DISM will collect the packages from the repository and save the .inf files with their binaries to the specified path. Note the important limitation: this method only covers INF-based drivers ; installers that come as MSI or EXE files are not exported this way.
Restore to a running installation
After reinstalling Windows, you can recover all your drivers at once with:
dism /online /Add-Driver /Driver:J:\Controladores /Recurse
The /Recurse parameter scans subfolders and appends everything it finds in INF format. If DISM flags an unsigned package and you're certain of its origin, you can repeat the operation with /ForceUnsigned on the specific INF file, although it's recommended to use signed and official drivers whenever possible.
Check the drivers in the image
To check which drivers are present, list the packages :
dism /online /Get-Drivers
If you want to see them all, including those that came with the image, add /all :
dism /online /Get-Drivers /all
The additional integrated drivers are renamed to oem*.inf to ensure uniqueness. This allows you to verify that the import was successful and locate a specific package if you need to remove or replace it.
Advanced Method: Integrate your drivers into a Windows ISO
If you want to go a step further, you can create a Windows installation medium that already includes your drivers. That way, when you perform a clean install, Plug and Play will have them ready , saving you from manual installations.
1) Get the Windows ISO
Download the ISO using the Media Creation Tool from the official Microsoft website for the same edition and architecture you have. Create a working folder, for example C:\\ISO , and save the necessary files there.
2) Convert install.esd to install.wim
Recent ISOs often include install.esd , which cannot be modified with DISM. We need to convert it to install.wim . You can do this with the Windows ADK or a simple utility like ESD2WIM-WIM2ESD (run it as administrator and follow the wizard to export all indexes). The process will take a while and will generate the install.wim file, which we will place in C:\\ISO.
3) Identify the index and mount the image
First, find out which editions the WIM contains and their indexes:
Dism /Get-ImageInfo /ImageFile:C:\ISO\install.wim
Create the mount folder, for example C:\\Offline , and mount the index you are interested in (e.g., 1):
Dism /Mount-Image /ImageFile:C:\ISO\install.wim /index:1 /MountDir:C:\Offline
When finished, the path C:\\Offline will show the Windows structure you are modifying. From there, we will add your previously exported driver copy .
4) Add the drivers to the image
Use the same command as before, but pointing to the mounted image:
Dism /Image:C:\Offline /Add-Driver /Driver:J:\Controladores /Recurse
If any package fails due to signature issues, integrate that specific INF package with /ForceUnsigned at your discretion (security first). Then, list the present drivers for confirmation:
Dism /Image:C:\Offline /Get-Drivers
To see absolutely all of them, including those in the original image, run:
Dism /Image:C:\Offline /Get-Drivers /all
5) Unmount with confirmation and rebuild the ISO
To save changes to the WIM and release the mount folder:
Dism /Unmount-Image /MountDir:C:\Offline /Commit
Once ready, replace the install.esd file in the ISO structure with your modified install.wim file using an ISO editing tool (UltraISO, Nero, Isomaster, etc.). Create the installation USB drive, and when you install Windows, your drivers will be automatically injected into the DriverStore during the process.
Additional tip: Many problems after a clean install stem from Windows Update replacing drivers with generic versions. Consider configuring your system to prevent Windows Update from automatically updating drivers, at least during the initial setup.
View, update, and roll back from Device Manager
To open it, right-click the Start button and select Device Manager . Expand the device category, go to Properties, and visit the Driver tab. From there, you can view the files, update, roll back to the previous version (if available), disable, or uninstall. Use it to verify that, after restoring your backup, the versions you wanted are active and everything is working correctly.
Uninstall and clean up leftover drivers
Over time, remnants of old drivers that you no longer use remain. You can list and delete them with PnPUtil as we've seen, or manage packages in an offline image with DISM. For example, to list drivers in an image at C:\\test\\offline:
Dism /Image:C:\test\offline /Get-Drivers
And to eliminate some specific OEMs:
Dism /Image:C:\test\offline /Remove-Driver /Driver:OEM1.inf /Driver:OEM2.inf
Always note the exact published name (ending in .inf) and confirm that it is not a package already in use. This cleanup frees up space and reduces potential conflicts between drivers.
Typical driver problems and how to deal with them
– Driver conflicts: two packages competing for the same hardware or a new, incompatible driver. Check Device Manager for the yellow triangle , review error codes, and reinstall the correct version from the manufacturer.
– Failed or incorrect installations: Sometimes an automatic tool installs the wrong driver. Ideally, download from the official website and ensure compatibility with your Windows edition (32/64-bit).
– Windows updates that break something: a classic example is Realtek audio being replaced with a generic driver. Run the troubleshooter and reinstall the correct package. You can also roll back the driver from the Driver tab if that option is available.
– GPU and gaming performance: Outdated drivers cause FPS drops, stuttering, or crashes. Keep your drivers up to date with GeForce Experience or AMD Adrenalin and perform clean installations during major version changes.
– Critical boot failure due to storage driver: Start in Safe Mode (loads generic drivers) and reinstall or revert to the previous driver from there to recover the system.
Other backup methods: copying FileRepository (with nuances)
A rudimentary alternative is to copy the FileRepository subfolder from the DriverStore. While this can be a temporary fix, it doesn't guarantee a clean reinstall or resolve dependencies or signatures. Whenever possible, prioritize exporting with DISM or PnPUtil , which preserve the package structure and are more reliable when restoring.
Third-party apps: which ones to use (and what to avoid)
Some utilities promise to update and back up drivers with a single click. Use them with caution: some add unwanted software during installation or install unofficial packages. When relying on them, review each step and create a restore point.
Popular managers and backers
- IOBIT Driver Booster- Well-known and effective at detecting outdated drivers and updating them. Be careful during installation to avoid unnecessary add-ons.
- Snappy Driver Installer Origin: Free, portable, and installation-free. It allows you to carry a library on USB to fix your computer. Ideal when you want to avoid bloatware.
- AVG Driver Updater: Extensive database and user-friendly wizard. The paid version is often recommended to get the most out of it, although for a quick checkup the free orients well.
- DriverEasy: Simple interface and huge database with millions of drivers. For advanced features and automation, it requires a license, but as a detector, it's very solvent.
Backup-focused tools
- DriverGuide Toolkit: Identifies installed drivers, suggests updates, and facilitates backups. Subscription option with support and a large database.
- Driver Max: Collection of over 2 million drivers. Allows for automatic backup, restore, and updates. The backup feature is free.
- Driver Backup 2!: Open source, portable, and fast. Backs up everything, including OEMs and third-party products; perfect for selective endorsements.
- Double Driver: veteran, free, and available in both GUI and command line. You can save details and restore from previous copies.
- Magician Lite Driver: Free version to identify and extract drivers from disk. The paid version adds updates, self-executing copies and more.
- Driver Genius: oriented to comprehensive management (backup, restoration and update) with automatic notifications and undoing changes. Very useful for diagnose problems.
- Driver Backup!: another open-source alternative for selecting which drivers to copy and where to save them. Supports OEM or third-party filters and easy use.
If your goal is simply to create a reliable backup, native solutions (DISM/PnPUtil) are generally safer. Third-party tools are useful for systems with unknown hardware or when you need to automate version lookups .
Practical tips and good practices
Prepare several small USB drives instead of one large one and label them by use: DRIVERS, BIOS, SYSTEM . It's more organized and will save you time.
– Do not store the backup on the same drive you are going to format. Use an external SSD, USB HDD, or even a reliable SD card .
– Version your backups: create subfolders by date or device so you can revert if an update goes wrong.
– Double-check that the drivers you export are the ones you're actually using now and that they're working correctly. This will prevent you from carrying over problematic packages to a new installation.
– If you're going to integrate drivers into an ISO, make sure the edition and architecture (Home/Pro, 64/32-bit) match. Mixing versions can cause silent errors during installation.
Beyond Drivers: Complete System Image
A driver backup is essential, but it alone won't protect your entire environment. Consider creating a system image that includes Windows, programs, drivers, and data, and complement this with preventative software maintenance . Tools like AOMEI Backupper or EaseUS Todo Backup allow you to clone your system, schedule incremental backups, and restore in minutes after a disaster, covering scenarios where driver backups alone fall short.
If Windows ever fails to boot due to a critical driver or system corruption, an image will restore you to a previous stable state without having to rebuild everything from scratch. Supplementing your driver backup with a full image is the best approach.
Mastering PnPUtil and DISM paves the way for a smooth process: you can export and restore drivers on the fly, clean up leftover files precisely, and, if you're feeling adventurous, create a Windows ISO image with your drivers included for clean, trouble-free installations. With a couple of well-labeled USB drives, the correct manufacturer-signed packages, and an up-to-date system image, your next reinstall will be a breeze , not a weekend spent searching for files online.