Skip to content

Instantly share code, notes, and snippets.

@startergo
Created July 17, 2023 15:34
Show Gist options
  • Select an option

  • Save startergo/bb828e488694f099155d4f0761169473 to your computer and use it in GitHub Desktop.

Select an option

Save startergo/bb828e488694f099155d4f0761169473 to your computer and use it in GitHub Desktop.
Export Windows Drivers DISM
  • The command exports all third-party drivers to the destination folder. Note that you may also use it to export drivers from an offline image using the following command (run from an elevated PowerShell prompt)
Export-WindowsDriver -Path c:\offline-image -Destination d:\Drivers
dism /online /export-driver /destination:d:\Drivers
  • Note that the folder needs to exist, you get an error otherwise and no export.

  • Import the exported drivers: Importing can be done for individual drivers or, by using a special command, for all drivers.

You may right-click on an .inf file to install the driver. Another option that you have is to open the Windows Device Manager to use the update driver button. Using it, you get an option to pick a driver from the local system. Just pick the exported driver and wait for the process to complete.

A recursive import of all exported drivers requires the tool pnputil.exe. Run the following command in an elevated command prompt window:

pnputil.exe /add-driver <path>\*.inf /subdirs /install

Replace with the full path of the exported drivers folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment