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

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

  • 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
  • How to Create UEFI Bootable USB Drive to Install Windows

    September 11, 2023
  • Redirect HTTP to HTTPS in IIS (Windows Server)

    September 7, 2023
  • Add an Additional Domain Controller to an Existing AD Domain

    September 6, 2023
  • How to Install an SSL Certificate on IIS (Windows Server)

    September 5, 2023
  • Managing Windows Firewall Rules with PowerShell

    August 31, 2023
  • Fixing ‘The Network Path Was Not Found’ 0x80070035 Error Code on Windows

    August 30, 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