This tool is commonly used to add or remove drivers in Windows (previously we showed how to remove old and unused device drivers from the Windows Driver Store to save disk space). You can manage device drivers on your computer using the built-in PNPUtil.exe tool. Exporting Installed Device Drivers Using PNPUtil To export all drivers to the C:\export-drivers directory, open an elevated command prompt and run the command:ĭism /online /export-driver /destination:C:\export-driversĮxporting 1 of 24 – oem0.inf: The driver package successfully exported.Īs you can see in our example, the DISM tool successfully exported 24 drivers to the specified directory. You can also use the DISM.exe to backup drivers and import them into a Windows image. To display a list of saved drivers in a convenient form with the class, vendor, and the driver version, let’s export the drivers using two commands:Īs you can see, a directory has been created with the name of the computer model and all drivers are exported in it. The Export-WindowsDriver cmdlet builds a list of files that are required to install the driver as specified in the CopyFiles section of the driver inf file. Each driver and all associated files are saved in its own directory, which is named by the name of the driver’s INF file.Įach directory contains all the files that are necessary to install the driver (not only *.inf files, but all associated *.sys, *.dll, *.exe, and other types of files). You will get a backup copy of all Windows drivers from the C:\Windows\System32\DriverStore\FileRepository\ directory. If you need to extract drivers from the offline Windows image mounted, the command should look like this:Įxport-WindowsDriver -Path c:\win_image -Destination c:\export-driversĪfter running the cmdlet, the screen displays information about all exported third-party drivers. The driver files are saved to the directory c:\export-drivers.