How to Import or Export Device Drivers on Windows 11?

Posted by

Do you want to backup your PC drives and restore when in the future when required? If your answer is yes, that you are reading the right article at gearupwindows. With the help of the command prompt, you can export (backup) or import (restore) device drivers on a Windows 11 computer. If you have planned to reinstall your Windows 11 machine and want to export installed drivers, you can do it using a few commands.

While your PC is working correctly, we recommend you keep a copy of it. If something goes wrong, you can restore those drivers after installing new Windows.

How to Export or Backup Device Drivers on Windows 11?

If you want to export or backup drivers from installed Windows 11, do the following:-

Step 1. First, open the Command Prompt with administrator rights.

To do that, press Windows + R keys from the keyboard to open the Run dialog box. In the Run box, type cmd and then press Ctrl + Shift + Enterfrom the keyboard to run the command prompt as an administrator.

Step 2. In the elevated command prompt, type the following to export the drivers for all devices installed on Windows 11 machine:-

dism /online /export-driver /destination:"full_path_to_export_folder"

Note: In the command, replace “full_path_to_export_folder” with a folder you want to export to. For example, if you’re going to ship drivers in the “C:\Drivers” folder, then your full command will be like:-

dism /online /export-driver /destination:"C:\Drivers"

Windows may take a while exporting drivers; it all depends upon the driver’s size. When done, you find all component drivers in your predefined folder.

You can also use the following command to export device drivers on a Windows 11 PC:-

pnputil /export-driver * "full_path_to_export_folder"

If you prefer to use PowerShell, then open Windows PowerShell with elevated rights and use the following command to export all device drivers:-

Export-WindowsDriver -Online -Destination "full_path_to_export_folder"

How to Import Device Drivers on Windows 11?

To import or restore device drives on Windows 11, use the following steps:-

Step 1. Open an elevated Command Prompt.

Step 2. In the command prompt, type the following and then hit Enter from the keyboard to execute it:-

pnputil /add-driver "full_path_to_import_folder\*.inf" /subdirs /install /reboot

Note: Replace the “full_path_to_import_folder” with your folder path where you have kept the backup of drivers.

That’s it!

Leave a Reply

Your email address will not be published. Required fields are marked *