How to export Windows drivers using DISM
#1
Lightbulb 
Quote:
[Image: export-windows-drivers-dism.png]

Did you know that you can use the built-in tool DISM on Windows machines to export drivers?

Windows comes with a set of drivers to make sure that most hardware devices work out of the box. Manufacturers create drivers for their devices that users may install; these may add support for functionality or may be required to get a device working at all on a Windows PC.

If you plan to migrate to a new Windows PC or to set up the current one from scratch, you may be interested in having these custom installed drivers at hand to install them.

Tip: you may list all installed third-party Windows drivers using the free tool DriverView. Nir Sofer has another tool, InstalledDriversList, which you may use as well. There is also Driver Store Explorer that you may use.

How to export drivers using DISM

With DISM, it takes one command to export drivers on the current Windows system. Here is how that is done.
  1. Open Start.
  2. Type cmd.exe.
  3. Select Run as administrator.
  4. Run the command dism /online /export-driver /destination:<path>
    • replace <path> with the path that you want the exported drivers to be saved to, e.g. c:\users\martin\downloads\driver-export\
    • Note that the folder needs to exist, you get an error otherwise and no export.
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)
Quote:Export-WindowsDriver -Path c:\offline-image -Destination d:\drivers

Check out Microsoft's Docs website for a full list of available parameters.

The process may take a moment to complete. A test on a Surface Go device resulted in 101 exported drivers. The process took several minutes to complete.

The exported drivers are placed in the specified folder. Each driver is put in a separate folder.
 
Recognition may be difficult, as folder names may not reveal much about the driver. You may open the .inf file in a folder in a plain text editor to look up additional information.

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 <path> with the full path of the exported drivers folder.

Closing Words

It takes a single command to export all third-party drivers on Windows systems. Using it before setting up a system anew or migrating to a new system may help users who don't have access to certain driver installations anymore.
...
Continue Reading
[-] The following 1 user says Thank You to harlan4096 for this post:
  • silversurfer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Recent Posts
Find out if an USB device is fake with f...
Fake USB devices c...harlan4096 — 08:47
Windows 11 KB5048685 Update causes Wi-Fi...
The KB5048685 Upda...harlan4096 — 12:36
Windows 11: issue may prevent further in...
The latest version...harlan4096 — 08:47
Notepad++ v8.7.5 (2024-12-25)
Notepad++ v8.7.5 (...harlan4096 — 08:16
AdGuard for Mac 2.16.2
AdGuard for Mac 2....harlan4096 — 08:13

[-]
Birthdays
Today's Birthdays
No birthdays today.
Upcoming Birthdays
No upcoming birthdays.

[-]
Online Staff
There are no staff members currently online.

>