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.

7 thoughts on “Dell and Lenovo Business Systems: Slipstreaming Windows 10 Drivers to Windows 10 Installation Media

  1. You have no idea how much this helped me. I have been in the IT industry for 20yrs and this Dell XPS 13 would not take Win10 install. I happened to find the CAB for the drivers and then found your steps, slipped in the drivers to my install and it worked like a charm! Thank you.

    1. Glad it helped, with Windows 10 and its inbuilt driver support I didn't think this guide would be that widely used.

      What version of Windows 10 e.g. Version 1909? What model of XPS 13 e.g. XPS 13 9365? Did it have a nVidia graphics?

  2. Greetings @philipyip,

    Your page is broken. there are span styles within commands. please fix it asap.

    Regards.

  3. This is a great guide which helps guarantee us a certain level of driver release when we refresh our laptops ready for autopilot ( exisitng laptops that come into IT )

    Is it possible to inject different drivers for different laptop models so that it saves us creating multiple USB's

    ie. Bootable USB for Dell 5470, Bootable USB for Dell 7400, Bootable USB for Dell 7410 ?

    1. I would guess its just a case of slipstreaming multiple driver packs but I haven't tried it.

      1. Thank you – when you say slipstreaming, do you mean using your script to inject the drivers into the .wim file ?

        I wonder if when the laptop is being built, if it knows or is aware of what drivers are for the model that is being images ?

Leave a Reply

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