Windows 10: How to export Windows drivers using DISM

Discus and support How to export Windows drivers using DISM in Windows 10 News to solve the problem; 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... Discussion in 'Windows 10 News' started by GHacks, Aug 11, 2021.

  1. GHacks
    GHacks New Member

    How to export Windows drivers using DISM


    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


    How to export Windows drivers using DISM export-windows-drivers-dism.png

    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)


    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.

    How to export Windows drivers using DISM exported-drivers.png

    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. (via Born)

    Thank you for being a Ghacks reader. The post How to export Windows drivers using DISM appeared first on gHacks Technology News.

    read more...
     
    GHacks, Aug 11, 2021
    #1
  2. DavidY Win User

    DISM - Add or Remove Drivers on an Offline Image


    Ah I thought you might be doing the DISM/drivers one.

    It is good info and I use parts of this frequently when I'm reinstalling on my old hardware and need to manually add drivers.

    I would suggest DISM /Get-Drivers as an alternate to the Powershell step in 2.2 - the table format is quite useful I find.

    One method of applying the drivers I tried which seems to work (not sure how valid it is) when clean-installing a machine as a one-off:
    1. Export drivers as per Step 2
    2. Use DISM /Get-Drivers to show which driver is which, and copy only the ones I know are problematic to a subfolder, and add this subfolder to a bootable Windows 10 Setup USB
    3. Boot Windows 10 Setup from the USB
    4. Open a command prompt with Shift F10, type command 'wpeutil shutdown' but don't press enter. Instead, Alt-Tab back to Setup
    5. Follow the normal clean install process, delete partitions and let it install the relevant edition
    6. When it says Restarting in a few seconds, quickly Alt-Tab to the command prompt and press enter, to stop it restarting but shut down instead
    7. Boot again from the USB, go straight into Shift-F10, and use DISM /add-driver to add relevant drivers to the offline Windows drive as per Step 4
    8. wpeutil shutdown again, and let it restart this time, so that Windows boots and finishes configuring itself with the new drivers available to it.
    I found it easier than Mounting the image and also means I don't change the .WIM so I can use that on other hardware without fear of non-standard (and probably quite old) drivers getting in the way .

    Although in some cases I could install and change it once Windows is up and running , one of 1709's default drivers causes a BSOD during installation itself, if I don't add the alternative manually using the above technique before it gets to that point.

    But it's not a technique I've seen anywhere else so I'm probably bending the rules somewhere. *Wink
     
    DavidY, Aug 11, 2021
    #2
  3. Monk.e83 Win User
    Unlocked Realtek HD Audio Drivers Windows 7 & 8 (With Dolby Digital Live and DTS Interactive)

    DTS supported natively by Windows 8/8.1 and it should work on windows 10 too just DDL require to unlock your driver .
     
    Monk.e83, Aug 11, 2021
    #3
  4. topgundcp Win User

    How to export Windows drivers using DISM

    Source to use for DISM on Windows 10


    This is not completely true. The suggestion is to download the Techbench version and use DISM to apply to install.wim directly. However, you can also use the version download from MCT except it will involve an extra step as follows:
    1. Use the latest version of 7-Zip to extract the content of install.esd. For example: to a folder xxx on the desktop
    2. From Admin command prompt:
      Dism /Online /Cleanup-Image /RestoreHealth /Source:%USERPROFILE%\Desktop\xxx\windows /LimitAccess

    See screen shot, the contents of install.wim and install.esd are exactly the same.


    How to export Windows drivers using DISM [​IMG]
     
    topgundcp, Aug 11, 2021
    #4
Thema:

How to export Windows drivers using DISM

Loading...
  1. How to export Windows drivers using DISM - Similar Threads - export drivers using

  2. Unable to repair Windows using dism.

    in Windows 10 Gaming
    Unable to repair Windows using dism.: In general, the thing is, I decided one day to check the integrity of Windows, first I ran "sfc /scannow", he wrote that everything is in order, but when I run "dism /Online /Cleanup-Image /ScanHealth", he writes "The component store is repairable.", I decided to fix it by...
  3. Unable to repair Windows using dism.

    in Windows 10 Software and Apps
    Unable to repair Windows using dism.: In general, the thing is, I decided one day to check the integrity of Windows, first I ran "sfc /scannow", he wrote that everything is in order, but when I run "dism /Online /Cleanup-Image /ScanHealth", he writes "The component store is repairable.", I decided to fix it by...
  4. How to Export Drivers using DISM in Windows 11

    in Windows 10 News
    How to Export Drivers using DISM in Windows 11: [ATTACH]Drivers are one of the most critical parts of the Operating System, allowing interfaces and hardware to talk. If you don’t install the OEMs driver, Microsoft uses the generic drivers, but it will still miss the custom functionality. Along with this, many develop...
  5. Repair Using DISM in Windows PE

    in Windows 10 BSOD Crashes and Debugging
    Repair Using DISM in Windows PE: I cannot boot my windows. Already tried automatic startup repair and resetting the PC which both failed. I have a flash drive containing windows 10. so how do I restore it? Restoring corrupt OS in windows 7 and xp was way more simpler than the newer OS. tsk!...
  6. DISM, Export WIM>ESD (recovery) > Crashes (0x80070008)

    in Windows 10 Installation and Upgrade
    DISM, Export WIM>ESD (recovery) > Crashes (0x80070008): Well, got interesting error with latest Windows 10 ADK, crashes while exporting image from WIM to ESD using /compress:recovery switch, same happens also with wimlib and solution seems the same (Figured perhaps this helps someone who might have same error). HW information:...
  7. EXPORT INSTALL.WIM BY USING DISM COMMANDS WITH CHECK-INTEGRITY

    in Windows 10 Installation and Upgrade
    EXPORT INSTALL.WIM BY USING DISM COMMANDS WITH CHECK-INTEGRITY: today i am sharing some commands useful to exporting new windows .wim images i have an initial image in C drive and i exported new image to H drive Get Image Information before exporting Imagex.exe /info C:\install.wim DISM.exe /Get-ImageInfo...
  8. How to restore drivers backed up via Dism /Online /Export-Driver

    in Windows 10 Drivers and Hardware
    How to restore drivers backed up via Dism /Online /Export-Driver: If I backup my drivers on my Win 10 Pro X64 system using Dism /Online /Export-Driver /Destination*Biggrin:\Lenovo_Drivers how do I restore them after I do a clean install? I've seen lots of tutorials on how to backup but nothing on how to restore when needed? 40895
  9. How to use DISM in WINDOW PE environment?

    in Windows 10 Performance & Maintenance
    How to use DISM in WINDOW PE environment?: i am trying to repair my windows(i cannot boot to windows 10 and i tried automatic repair three times already). Can't even boot to safe mode. Keeps getting pci.sys corruption error at boot up. So i am forced to use a usb to boot to a Pre-installed window environment....
  10. Source to use for DISM on Windows 10

    in Windows 10 Performance & Maintenance
    Source to use for DISM on Windows 10: I have a Lenovo W530 laptop, that started with Windows 7 Pro, then got upgraded to Windows 8, then 8.1, and now 10 Pro. I have the factory setup disks for only 7 and 8. I ran DISM and it says the source files could not be found. From a similar problem several months...