Dell and Lenovo Business Systems: Slipstreaming Windows 10 Drivers to Windows 10 Installation Media

Tutorial Video: Dell Example

Tutorial Video: Lenovo Example

Download Drivers

For this guide we need a set of extracted drivers opposed to packaged drivers in an application. These are available for Business Models such as the OptiPlex, Latitude, Precision and XPS ranges. They are typically not available for Home Models such as the Inspiron or Vostro ranges.

This guide focuses more on the Dell systems but if you rename the extracted folder LenovoDrivers and move it to the C:\ Drive and change 1 line of code in the Add Drivers script it will work for Lenovo Systems.

Select the Driver Pack and select Download:

You will need to extract these drivers. I recommend using 7zip for this.

Right click the CAB file and select 7-Zip and then Extract to ” “:

You may get the Warning “There are some data after the end of the payload data”. You can ignore this and select Close:

Open the extracted folder:

Select the model:

Select the Win10 folder:

You should now have an x64 folder.

Rename this DellDrivers:

Move DellDrivers to C:\

Locate the install.esd

For this stage you should have already downloaded a Windows 10 ISO and created a Windows 10 Bootable USB. If you haven’t see my Windows 10 guides. Open your Windows 10 Bootable USB in Windows Explorer and navigate to the Sources Folder:

Scroll down until you find your install.esd and copy it directly over to the C:\ Drive

You may need to select Continue to provide administrative permissions:

Lookup Editions on install.esd

Open up notepad and copy the following:
Dism /Get-WimInfo /WimFile:C:\install.esd
PAUSE

The part highlighted in blue is the file path of the install.esd

Save the file as Installesdlookup.bat for this you need to have the Save as type set to All Files otherwise it will call it Installesdlookup.bat.txt

This will give you a batch file:

Right click it and select Run as Administrator:

Accept the User Account Control Prompt:

I am interested in the Pro Edition only which is index 6.

If you are interested in a different Edition use the index it is listed as in the next step instead. Press any key to close the Command Prompt.

Convert Install.esd to install.wim

Once again open up notepad and this time copy the following:

dism /Export-Image /SourceImageFile:C:\install.esd /SourceIndex:6 /DestinationImageFile:C:\install.wim /Compress:Max /CheckIntegrity

The part highlighted in blue is the import file path of the install.esd, the part highlighted in red is the export file path of the install.wim and the part highlighted in green is the SourceIndex, in this case we want the Pro Edition which is 6.

Save it as installesdtoinstallwim.cmd once again with the save as type set to all files.

Right click it and select run as administrator.

When done the Command Prompt will automatically close. You will have an install.wim which we can add drivers to

Add DellDrivers to install.wim

We can add the contents of DellDrivers to the install.wim using the following code. Once again open up notepad and this time copy the following:

Dism /Get-WimInfo /WimFile:C:\install.wim
PAUSE
mkdir C:\PRO
Dism /Mount-WIM /WimFile:C:\install.wim /index:1 /MountDir:C:\PRO
Dism /Image:C:\PRO /Add-Driver /Driver:C:\DellDrivers /Recurse
Dism /Unmount-WIM /MountDir:C:\PRO /Commit
rmdir C:\PRO
Dism /Get-WimInfo /WimFile:C:\install.wim
PAUSE

First we look up the install.wim information and then pause so the user can read the output. We then create a temporary folder and the path is highlighted in red. The part highlighted in blue is the path of the install.wim and we extract the first (and only index) of the install.wim. The driver folder is highlighted in green followed by /Recurse which means the drivers in this folder and all its subfolders will be incorporated. Finally we commit the changes and then remove the temporary folder. We then lookup the install.wim information and then pause so the user can read the output.

For a Lenovo system you can rename the extracted folder LenovoDrivers and change the code to LenovoDrivers opposed to DellDrivers.

Save it as adddrivers.cmd once again with the save as type set to all files.

Right click it and select run as administrator. Press any button to continue at the two pauses.

Convert install.wim to install.swm

Windows 10 Installation Media Needs to be FAT32 formatted in order to pass Secure Boot. Once you have added the drivers your install.wim will exceed 4 GB.

To get around this we’ll need to split the file into chunks that are below 4096 MB. We can use the code to split the file. Once again open up notepad and this time copy the following:

Dism /Split-Image /ImageFile:C:\install.wim /SWMFile:C:\install.swm /FileSize:4000

Save it as installwimtoinstallswm.cmd once again with the save as type set to all files.

Right click it and select run as administrator. The Command Prompt Windows will automatically close when done.

Now delete the install.esd in the sources folder of your Bootable USB:

Copy over all your installx.swm files.

You now have Windows 10 Installation Media which you can use to Clean Install Windows 10 on your system.

Note if you use the Dell Data Wipe to securely wipe all drives before Clean Installation and then Clean Install Windows 10 using this up to date Bootable USB up until this screen:

You can then remove the Bootable USB and Power Down the PC leaving your system in a very similar state to a Factory Image. This is particularly useful if you are selling the system on 2nd hand.

Advertisements

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.