Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 7 / Adding USB 3.0 and NVMe Drivers to Windows 7 Install Media

November 16, 2022 Windows 7Windows Server 2008 R2

Adding USB 3.0 and NVMe Drivers to Windows 7 Install Media

The Windows 7 RTM distribution doesn’t support USB 3.0 and NVME controllers out-of-the-box, and you can encounter some problems when installing Windows 7 on a computer/laptop having USB 3.0/3.1 ports only or with an SSD drive connected via a PCI Express bus (NVMe). For example, a USB keyboard and mouse may not work in Windows 7 Setup, or the installer may require you to load drivers for USB/NVMe ports or devices:

A required CD/DVD drive device driver is missing. If you have a driver’s floppy disk, CD, DVD, or USB flash drive, please insert it now.
Note: If the Windows installation media is in the CD/DVD drive, you can safely remove it for this step.

A required CD/DVD drive device driver is missing. If you have a driver floppy disk, CD, DVD, or USB flash drive, please insert it now.

Accordingly, you cannot install Windows 7 (or Windows Server 2008 R2) on a computer on which all peripheral devices are connected via USB 3.0 ports. Or the Windows Installer will not see the PCI Express (NVMe) SSD.

All of the Windows 7 installation image modification operations described below are performed on a computer running Windows 10.

Contents:
  • How to Inject USB 3.0 Driver into Windows 7 Install Media?
  • How to Install Windows 7 to NVMe SSD?

The Enhanced Host Controller Interface is not supported in the Intel chipsets starting from the 100 and 200 series (B150, H110, H170, Q150, Q170, Z170, Intel Apollo Lake), similar AMD chipsets and chipsets from other vendors. Therefore USB 3.0 ports are simply not recognized by the Windows 7 installer.

How to Inject USB 3.0 Driver into Windows 7 Install Media?

To install Windows 7 on some computer models, you can disable USB 3.0 mode in BIOS settings by switching to USB 2.0 compatibility mode (Legacy USB 2.0). In all other cases, you will have to modify Windows 7 install distro and integrate USB 3.0 drivers for your motherboard chipset to the boot and install WIM images.

Some motherboard vendors released special tools to integrate their USB drivers into your Windows 7 install image. Examples: ASRock (Win 7 USB Patcher), MSI (MSI Smart Tool), Intel (Windows USB Installation Tool for Windows 7), Gigabyte (Windows USB Installation Tool), etc. In this article, we will show you how to manually integrate USB drivers into the Windows 7 installation image without using third-party utilities.

First of all, find and download USB 3.0 drivers for your chipset from the vendor’s website (in our example, it is Intel® USB 3.0 eXtensible Host Controller Driver for Intel® 7 Series/C216 Chipset Family). Create a new directory c:\tmp, and create two subfolders inside it: mount and USB3. Extract the driver archives to the USB3 folder. You can create several subfolders with different USB 3.0 drivers for popular chipset models inside the USB3 catalog.

Next, you need to integrate your drivers into the Windows 7 installation image (it may be an ISO file or a ready image copied to the installation USB stick). You need to copy two WIM files from the ISO image or Windows 7 installation media to the local c:\tmp directory on your drive.

  • \sources\boot.wim – WinPE boot image used to boot the computer and run Windows Setup;
  • \sources\install.wim – Windows 7 image that will be installed on your computer.

Windows 7 boot.wim and install.wim

If you have several *.swm (split wim) files instead of an install.wim file, you can convert them into one file. Check the number of indexes in the file:

DISM /get-wiminfo /wimfile:install.swm

Now export each install.swm index into a single WIM file:

DISM /export-image /sourceimagefile:install.swm /swmfile:install*.swm /sourceindex:1 /destinationimagefile:install.wim /compress:max
DISM /export-image /sourceimagefile:install.swm /swmfile:install*.swm /sourceindex:2 /destinationimagefile:install.wim /compress:max

Open an elevated command prompt  Now mount the WinPE boot image (boot.wim) to the c:\tmp\mount directory and integrate the USB 3.0 drivers into it using DISM commands (according to the guide How to add drivers to a Windows image):

dism /mount-wim /wimfile:c:\tmp\boot.wim /index:2 /mountdir:c:\tmp\mount
dism /image:c:\tmp\mount /add-driver:"c:\tmp\usb3" /recurse

dism /image:c:\tmp\mount /add-driver usb

The /recurse option will force DISM to scan all subdirectories in the specified folder and add all drivers from found inf files.

The following message indicates that the specified USB3 driver was successfully added to the boot.wim image of the Windows 7 Setup environment:

Installing 1 of 6 — c:\tmp\usb3\Drivers\HCSwitch\x64\iusb3hcs.inf: The driver package was successfully installed.

Save the changes in the image and unmount the boot.wim file (to avoid DISM errors, make sure that you closed all File Explorer windows and the file managers, which has the c:\tmp\mount directory open):

dism /unmount-wim /mountdir:c:\tmp\mount /commit
dism /cleanup-wim

Similarly, you need to update the operating system installation image in the install.wim file. The main difference here is the install.wim image can contain several editions of Windows 7 with different indexes. So, you will have to add drivers to that Windows edition you are going to deploy on your desktop computers (or inject drivers to all available Windows 7 editions in turn).

You can list the available Windows 7 editions in the install.wim image as follows:

dism /Get-WimInfo /WimFile:c:\tmp\install.wim

dism Get-WimInfo

In our example, there are 4 different Windows editions in the install.wim image. We’ll add the USB 3.0 driver to Windows 7 PROFESSIONAL with the index 3 (this number will be used to address the edition in the DISM commands).

Then add the USB 3.0 drivers to the Windows install image as we did it above:

dism /mount-wim /wimfile:c:\tmp\install.wim /index:3 /mountdir:c:\tmp\mount
dism /image:c:\tmp\mount /add-driver:"c:\tmp\usb3" /recurse
dism /unmount-wim /mountdir:c:\tmp\mount /commit
dism /cleanup-wim

If you are using a USB flash drive as the installation source, be sure to copy the boot.wim and install.wim files back after injecting the drivers.

You can also use IDSM to integrate the latest security updates into your Windows installation image.

How to Install Windows 7 to NVMe SSD?

In this part, we’ll show you how to create an NVM Express (NVMe)-enabled Windows 7 boot image for hard drives (typically SSDs) connected via a PCI Express (PCIe) bus.

When you try to install Windows 7 on a computer with an NVMe disk, the Windows installer will simply not see the SSD drive connected through this bus.

No drives were found. Click Load Driver to provide a mass storage driver for installation.

windows setup not recognized nvme ssd No storage drives were found

Windows 7 SP1 and Windows Server 2008 R2 SP1 distros don’t contain PCIe (and NVMe) drivers, you can only install the OS on a SATA SSD drive. Built-in support for NVMe appeared only in Windows 8.1. Microsoft has released special updates that enable support for NVM Express in Windows 7. Next, we will show you how to enable PCIe support in the Windows 7 installer and inject NVMe drivers into it.

  1. Download the following updates from the Microsoft Update Catalog: KB2990941-v3, KB3087873-v2. Save *.MSU files to the directory c:\tmp\updates;
  2. Download the NVMe driver for your controller and extract it to c:\tmp\nvme;
  3. Slipstream the updates and the drivers to the boot WinPE image (boot.wim):
    DISM /Get-WimInfo /WimFile:c:\tmp\boot.wim
    DISM /Mount-Wim /WimFile:"C:\tmp\boot.wim" /Index:1 /MountDir:c:\tmp\mount
    DISM /Image:c:\tmp\mount /Add-Package /PackagePath:C:\tmp\updates
    DISM.exe /image:c:\tmp\mount /Add-Driver /driver:c:\tmp\nvme /recurse /ForceUnsigned
    DISM /Unmount-Wim /MountDir:c:\tmp\mount /Commit
  4. Run the same commands for the image with index 2 (on the second line, replace /Index:1 with /Index:2 ).
  5. Now you need to integrate the update and the driver into the Windows installation image (install.wim). The image file can contain several versions of Windows 7 with different indexes. You can get a list of Windows versions with the command:
    dism /Get-WimInfo /WimFile:c:\tmp\install.wim
    Specify the index of the image to be updated (in our example it is Index:2 )
    DISM /Get-WimInfo /WimFile:c:\tmp\install.wim
    DISM /Mount-Wim /WimFile:"C:\tmp\install.wim" /Index:2 /MountDir:c:\tmp\mount
    DISM /Image:c:\tmp\mount /Add-Package /PackagePath:C:\tmp\updates
    DISM.exe /image:c:\tmp\mount /Add-Driver /driver:c:\tmp\nvme /recurse /ForceUnsigned
    DISM /Unmount-Wim /MountDir:c:\tmp\mount /Commit
Similarly, you can add USB and NVMe drivers to winre.wim image of the Windows Recovery Environment.

32 comments
10
Facebook Twitter Google + Pinterest
previous post
Configuring SFTP (SSH FTP) Server on Windows
next post
How to Enable and Configure WinRM (Windows Remote Management) via GPO

Related Reading

How to Create UEFI Bootable USB Drive to...

September 11, 2023

Fix: BSOD Error 0x0000007B (INACCESSABLE_BOOT_DEVICE) on Windows

May 16, 2023

0x80244010 Exceeded Max Server Round Trips: Windows Update...

April 12, 2023

How to Enable TLS 1.2 on Windows

January 18, 2023

How to Restore Deleted EFI System Partition in...

November 30, 2022

32 comments

Rich June 6, 2017 - 10:57 pm

Great article. Just followed to merge USB3.0 drivers into ISO for a Dell 7480. Worked a treat.
Many thanks.

Reply
Justin April 11, 2018 - 8:44 am

Brilliant article. Easy to follow. Got the USB mouse and Keyboard working on a HP Elitedesk G3 Mini.
Thank you

Reply
Martin van Dijk July 1, 2022 - 1:35 pm

Justin,
i tried to mount but it did not work…….

Reply
Andrew September 20, 2018 - 7:22 am

Hell ya it ended up working for m on my custom PC. decided to install after windows 10 blue screened me. right? wtf i did realize i needed to copy the .wim files from the tmp folders in C to the usb drive and replace the old ones with the new ones after that it worked! wireless mouse and keyboard no problem. 2 days trying to fix all this and now i can get back to gaming 😀 thank you! BTW intell explained i needed to get the usb drive from my motherboards website msi.

Reply
Tim Petts October 1, 2018 - 2:36 pm

Awesome guide, well explained, saved me hours !, thanks so much !!!

Reply
Jace November 18, 2018 - 3:09 am

Thank you!!!!

Been having a hell of a day trying to get W7P installed on an older Thinkpad. It had been downgraded to Windows 10, and this was causing too many headaches. Your write-up above was brilliant; now doing the final bits of Windows updates and other drivers. Thank you again!

Reply
lovert December 3, 2018 - 11:25 am

You saved my life. Thanks very much

Reply
Mario Flores December 12, 2018 - 12:28 am

This worked great for getting Windows 7 installed on a 2013 Macbook Air, but once Windows is installed, the drivers are no longer present and the initial setup of the OS cannot be completed. Any suggestions?

Reply
admin December 20, 2018 - 9:39 am

You may need to add an additional driver for the USB device. I suppose that the keyboard doesn’t work on your Mac?
Or forget to integrate the USB drivers into your install.wim image.

Reply
markymonkeymark December 18, 2018 - 1:45 am

Tried this tutorial but it doesn’t work to me… if you have a unit same as mine that it worked, please share…

Laptop:
Acer Aspire ES1-432

Reply
admin December 20, 2018 - 10:00 am

What driver did you try to integrate into your Windows 7 image?

Reply
Nasir Enrique January 11, 2019 - 6:25 am

Thanksssss A Lott…. BRO YOU saved my dayy…. 😘😘😘😊😊😊😊

Reply
Rellik1000 February 18, 2019 - 4:30 pm

Downgrading an hp15-233 to win7…bad dvd.

I’ve tried at least 10 different ways,from manually,to the gigabyte utility to merge the intel extensible drivers to the win7 pro iso,to install win7 from usb.

dism reports them correctly,available as 3rd party drivers in boot.wim and install.wim images.

I absolutly know these are the correct drivers for this SOC.

I even went as far as merging the signed MS usb3 drivers from the original win10 os on this machine.

Is win7 setup looking for something else?

I’ve spent a whole Sunday so far with no success.

It’s now become a QUEST and,I WILL NOT BE BEATEN.
Any ideas?

Reply
Rellik1000 February 18, 2019 - 4:37 pm

BTW make sure ALL windows explorer windows are closed to avoid dism errors when unmounting any wims.

Reply
Juan Carlos ESPINOSA May 14, 2019 - 3:18 pm

After many hours, you saved me! Thanks! HP 705 G3 Mini and Windows 7 Pro INSTALLING!!!

Reply
X May 18, 2019 - 6:23 am

The driver gets installed into boot.wim but when I try to install them into install.wim, it gives an error. I have checked the location and it’s correct.

Reply
Jason December 29, 2019 - 3:57 am

If you get Error 5, then you need to take ownership and add Administrators with full control on all child objects to:
C:\tmp\mount\Windows\System32\DriverStore\FileRepository

Reply
Mark Moore June 1, 2019 - 7:47 pm

Installation reports success but I still do not have control of my keyboard or mouse. Why does instructions refer to index 2 regarding boot.wim? I understand the reference in Install.wim. Gigabyte X470 Auros Ultra Gaming with Ryzen 2600X. BIOS is at F6. Is there a way to add a PS/2 port to this motherboard?

Reply
Сергей July 10, 2019 - 7:15 pm

Have the same chipset, all dism operations succeeded. But after reboot and installation attemt still have the error “A required CD/DVD drive device driver is missing…” Appreciate any help. Sorry for bad English.

Reply
SARFARAZ January 27, 2020 - 6:02 am

The driver gets installed into boot.wim but when I try to install them into install.wim, it gives an error. I have checked the location and it’s correct.
Error: 11

An attempt was made to load a program with an incorrect format.

Reply
admin January 28, 2020 - 5:39 am

Check the DISM log for errors: C:\WINDOWS\Logs\DISM\dism.log
Also check the paths and make sure that you unmounted the previous wim file using the “dism /unmount-wim” command

Reply
Riplet April 4, 2020 - 11:45 pm

Thank you so much! Never knew DISM was such a breeze to work with!

Cheers!

Reply
Michel May 19, 2020 - 8:27 am

I get an error on the command
“dism /image:c:\tmp\mount /add-driver:”c:\tmp\usb3″ /recurse”
I can’t find out why.

Reply
admin May 21, 2020 - 7:26 am

Please provide the full DISM error text and code

Reply
Paul February 17, 2021 - 12:02 am

Also works with Windows 7 System Repair Disk. Note, there’s no “install.wim”, but updating boot.wim only did the trick for me with an HP Elitedesk 800 G2 Mini. Thanks.

Reply
EDDIE August 17, 2021 - 12:12 pm

DAMN .. I was wrecked with a HP system .. finally managed to load WIN 7 but USB port wasn’t detecting .. & also no network drivers.
Somewhere i seen USB 3 & bios in the enormous post .. i just went to bios ..set it to AUTO & yess .. USB is on ..
Thank you

Reply
MartinJ August 26, 2022 - 9:42 am

I have a Dell 5480 and can only find the USB3 drivers in an EXE file, any idea how I unpack this archive please?

Reply
lou powell November 6, 2022 - 2:51 am

it works well
just add a little : “if you use USB drive for installation source, don’t forget to copy boot.wim & install.wim back after mounting driver”

Reply
admin November 16, 2022 - 8:41 am

Thanks for the note!

Reply
Daniel December 11, 2022 - 9:01 pm

Awesome notes! got win 7 on dell 7480 latitude working.

Reply
Toby April 19, 2023 - 12:48 am

I have tried this and just am not getting anywhere at all. No errors, everything about this goes according to the instructions, no problems following it at all. It just didn’t work. I still get to the same initial install screen with no response from keyboard or mouse. Windows 7 USB and wireless keyboard/mouse transmitter both in the USB 2.0 ports. I’ve also tried wired keyboards and mice and have changed up ports. I’ve even tried both indexes on Boot.Wim and all 4 indexes on Install.Wim and no change.

Using a Generic Mini-PC with below specs:

Specification:
CPU: Intel Pentium Processor J4205 (up to 2.6 GHz)
RAM: 12 GB DDR3L
Storage: 128 GB mSATA SSD
*SATA: Support 1 x 2.5 inch SATA HDD or SDD

Processor Graphics: Intel UHD Graphics 500
Graphics Base Frequency: 250 MHz
Graphics Burst Frequency: 800 MHz
Cache: 2 MB
# of Cores: 4
Processor Base Frequency:1.5 GHz
Burst Frequency: 2.6 GHz

WiFi:Dual Band, 2.4G/5G
LAN:10/100/1000M
Bluetooth: Version 4.2

Interface:
2 x USB 3.0 Port
2 x USB 2.0 Port
2 x HDMI Port
1 x RJ45 (1000Mbps LAN) Port
1 x Headphone Microphone Port
1 x DC in Port

Reply
CHOPPERGIRL June 20, 2023 - 12:57 am

Not sure why you didn’t link to the finished ISO hosted somewhere or uploaded as a torrent…

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Restore Deleted EFI System Partition in Windows
  • Fix: BSOD Error 0x0000007B (INACCESSABLE_BOOT_DEVICE) on Windows
  • Updating List of Trusted Root Certificates in Windows
  • How to Sign an Unsigned Device Driver in Windows
  • Fix: Windows Cannot Connect to the Shared Printer
  • How to Create UEFI Bootable USB Drive to Install Windows
  • How to Check, Enable or Disable SMB Protocol Versions on Windows?
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top