How to backup drivers using Command Prompt on Windows 10

Here is an easy way to backup and restore device drivers on Windows 10 using the DISM command-line tool.

Backup drivers on Windows 10

Whether you’re doing a clean installation or reinstallation Windows 10, you always have to make sure to install device drivers to allow the operating system to communicate with the hardware and peripherals connected to your computer.

Nowadays, this isn’t much of an issue anymore, as Windows 10 can detect most of the drivers on your device automatically. In addition, you can always visit your device manufacturer’s support website to download the latest drivers.

However, there will be times when Windows 10 won’t be able to install certain drivers or your manufacturer will stop offering the driver for a particular device. Fortunately, Windows 10 includes a command to backup every driver installed on your computer, which you can use before reinstalling Windows 10.

In this guide, you’ll learn the steps to use Deployment Image Servicing and Management (DISM) command-line tool to create a backup of all the drivers on your device, and how you can restore them on Windows 10.

Backup device drivers using Command Prompt

To backup all the device drivers with DISM commands, use these steps:

  1. Open File Explorer on Windows 10.

  2. Create a new folder to store the backup with all the drivers (Ctrl + Shift + N).

  3. Open Start.

  4. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  5. Type the following command and press Enter:

    DISM /online /export-driver /destination:C:\DriverBackup
    DISM backup drivers on Windows 10
    DISM backup drivers on Windows 10
    Quick note: Change the C:\DriverBackup with the path to the folder where you want to store the backup. If you’re planning to reinstall the operating system, it’s recommended to save the driver backup to an external storage.

Once you complete the steps, DISM will look and make a copy of all the drivers stored in C:\Windows\System32\DriverStore. It’s important to point out that this method will only make a backup of those .inf drivers. Other drivers installed using an .msi or .exe package won’t get backed up.

Restore device drivers on Windows 10

You should be able to restore drivers on the new installation of Windows 10 using this command: DISM /online /Add-Driver /Driver:D:\DriverBackup /Recurse. However, every time you try the command you’ll get an error: 50 “This command can only be used with an Offline image.”

However, after reinstalling Windows 10, it’s likely that you’ll only need to install a few drivers as the operating system will detect most of them automatically (even without checking for updates), as such you can install the remaining drivers using Device Manager.

To restore drivers manually on Windows 10, use these steps:

  1. Open Start.

  2. Search for Device Manager and click the top result to open the console.

  3. Expand the category with the device you want to install the driver. (If the device doesn’t have any driver installed, it’ll be highlighted as an unknown device.)

  4. Right-click the device and select the Update driver option.

    Device Manager update driver option
    Device Manager update driver option
  5. Click the Browse my computer for driver software option.

  6. Click the Browse button.

  7. Select the folder with the driver backup.

  8. Check the Include subfolders option.

  9. Click the Next button.

    Device Manager restore device driver
    Device Manager restore device driver
  10. Click the Close button.

After you complete the steps, the driver will install, and then you may need to repeat the same instructions to install any remaining device without a driver.

While the operating system can detect a number of device drivers, you’ll find this guide particularly useful when Windows 10 can’t detect your network adapter or older devices are no longer supported, but previous drivers still work.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 15 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 21 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me. Email him at [email protected].