Tutorial Video: Dell Example
Tutorial Video: Lenovo Example
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.
- Dell Drivers are available as .CAB files which needs to be extracted with 7-zip. For Dell Business Models visit the Dell Website: https://www.dell.com/support/home/uk/en/ukdhs1?app=drivers&~ck=mn
- Lenovo SCCM drivers are available as an .exe which extracts all the drivers required to a folder when the .exe is launched. For Lenovo Business Models they are available here: Lenovo SCCM Driver Packs
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.
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
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
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
Right click it and select run as administrator.
When done the Command Prompt will automatically close. You will have an
Add DellDrivers to install.wim
We can add the contents of
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
For a Lenovo system you can rename the extracted folder LenovoDrivers and change the code to LenovoDrivers opposed to DellDrivers.
Save it as
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
Right click it and select run as administrator. The Command Prompt Windows will automatically close when done.
Now delete the
Copy over all your
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.