In this post, I will try to give a quick overview and guide on how to add drivers quickly to a Windows 10 installation from USB using DISM.
DISM is an acronym that stands for “Deployment Image Servicing and Management”, and it’s a built-in Windows command-line tool that helps with the preparation of Windows operating systems installations.
The first step is plugging in the USB with installation files to a computer running Windows 10. There should be a folder within it called Sources, try to search for “install”, and confirm if it has “.wim” or “.esd” extension. This is important in later steps.
The second step is to download the drivers in “.inf” format and place them all in a folder of your choice.
The third step is to run Command Prompt as administrator, and type in the following command to show all the Windows 10 versions within and more importantly their index.
DISM /Get-WimInfo /WimFile:D:\Sources\install.wim
Choose the drive and path for your pen drive.
If you would like to find out the version of Windows 10 in the pen-drive, you can run the following command.
DISM /Get-WimInfo /WimFile:D:\Sources\install.wim /index:1
Adapt to the install file extension and drive.
Create a new folder in a path of your choice, to add the mount point.
MKDIR C:\New_Folder
Example command to create a folder.
To mount the image to the folder you just created, use the command below:
Dism /Mount-Image /ImageFile:D:\Sources\install.wim /index:1 /MountDir:C:\New_Folder
Adapt to your folder.
To load the all drivers to the image, point the command below to the folder where all your drivers are. It will be recursive to all folders and drivers within it.
Dism /Image:C:\New_Folder /Add-Driver /Driver:C:\Path-to-folder /Recurse
Replace Path-to-folder to the location of your drivers.
To double check if the drivers are all loaded, use the following command:
Dism /Image:C:\New_Folder /Get-Drivers
The final step is to commit the changes to the pen-drive, by running this command.
Dism /Unmount-Image /MountDir:C:\New_Folder /Commit