Skip to content

Instantly share code, notes, and snippets.

@TomCan
Last active January 9, 2026 01:57
Show Gist options
  • Select an option

  • Save TomCan/9644966 to your computer and use it in GitHub Desktop.

Select an option

Save TomCan/9644966 to your computer and use it in GitHub Desktop.
Inject drivers in Windows installation after motherboard change
Today, after working with Windows for over 15 years now, I finally came across the solution to the
dreadfull BSOD STOP 0x0000007B after replacing the motherboard of a computer, or after moving the
harddrive to another computer, or after doing a P2V, or after ... you get the point.
Requirements:
- Windows install / boot CD
- Chipset / Mobo / Storage drivers of the new motherboard or storage controller
Steps:
- extract all the drivers to a USB thumb drive
- boot with the Windows CD
- go to the recovery console (typically hidden somewhere under repair, or advanced tools
- find out what drive letter your windows installation is in (probably C:) and what drive letter your
USB thumb drive is in (let's assume D:)
- type in the magic command:
DISM /Image:C:\ /Add-Driver /driver:D:\ /recurse
- wait until the process completes. You should see lines indicating what driver is being injected
- reboot
After rebooting, you should be able to boot into windows (if the boot menu for start-up repair shows,
just select the option to boot Windows normally). Once booted, Windows will probably install some more
drivers and you will probably need to reboot once more. There's also a chance that you'll need to
re-activate your Windows.
@DEADSOLDIERtr
Copy link

Hello, I just opened an account to ask for help.

I have downloaded Windows 11 to my Acer Nitro v15-51 without VMD.

VMD was a hassle, and because I don't understand, I just disabled VMD.

But when a new bios update comes, it opens VMD automatically, so I get a blue screen, and I have to open the boot menu to close VMD again.

Now, I want to enable VMD, but because the OS was installed without the VMD driver, it doesn't start with the option on. Even after downloading VMD driver and installing it in the OS.

I guess I had to install the driver in the setup screen.

I'm 80% sure the answer to my problem is here, injecting the driver.
But because I don't understand anything about this topic, can someone explain it to me?

I literally need an explanation on a toddler level. (T_T)
Thank you in advance.

@Korenchkin
Copy link

still usefull! thanks,just upgraded from 6th gen intel + win10 to new intel pc and to win11 later without loosing any data/installed programs... injected "iastorvd" driver (i hope i remember driver name correctly)
also,still don't understand why on earth you would want intel vmd on nvme...

@Ritchiie-git
Copy link

Hi all,

Thank you very much. This is a very useful guide on how to add the missing drivers to a non-booting Windows installation. Following the same principle of using the DISM commands, I have found a somewhat easier way to doing this for anyone who doesn't want to go through CMD commands and Windows Repair/Recovery environment.

I have just done this on a HP Laptop where the Intel Rapid Storage driver was missing and therefore, I was getting the "Inaccessible Boot Device" error.

What I did was:

  1. Download SergeiStrelec WinPE. The link can be found via a Google Search.
  2. Write the WinPE .iso file to a USB Drive using Rufus to make a USB Bootable Drive
  3. Download the required storage driver and place the whole driver folder somewhere on the USB Bootable Drive. In my case, I needed to install the Intel VMD driver on an HP laptop. The driver comes as an .exe file that extracts to a folder. I copied this entire folder to the USB Bootable Drive.
  4. Upon booting with the USB Drive, you get the choice of Windows 10 or 11, choose any of the 2, it doesn't really matter.
  5. Once you are booted to the WinPE desktop, search for the Dism++ tool.
  6. Once you are in the Dism++ tool, it will show you the available options for the WinPE, YOU MUST choose your own Windows Installation on the top part of the Dism++ window
  7. Click on Drivers on the left hand side
  8. Click on Add, it will ask you to browse to the location of the driver you want to add
  9. Choose the Driver folder that you placed on the USB Drive in Step 3.
  10. Dism++ will install the driver and give you a confirmation message afterwards.

And that's it, you shut down the PC/Laptop, remove the USB Drive and boot normally. This is what worked for me. Hope it helps you guys out as well. Cheers!

@martinassistantking
Copy link

Love u!!! Many tahnks bro!

@namelessmasses
Copy link

namelessmasses commented Jan 9, 2026

Preserved OS Install

tl;dr DISM injection of iaStor driver into an environment that will boot your existing Windows install into Safe Mode where you can run SetupRST.exe. I used my existing Windows Recovery Environment.

I did also create a bootable USB drive that allows access should something fail with the recovery environment, but I don't think it is totally necessary to get it running at first.

My Scenario

Credits and Other References

Obtaining the "iastor" Driver

The exact name of the driver seems to vary based on the Intel platform and the version of the driver supporting the platform. In the case of 13th gen. and driver v20.2.26.1025, the name of the driver is iaStorVD.inf. On an earlier 10th generation i7-10875H, the driver installed was

 21ms 2026-01-08 15:48:48 PS7> dism /online /get-drivers /format:table | select-string iastor

oem102.inf     | iastorhsa_ext.inf                               | No    | Extension             | Intel Corporation             | 2022-09-19 | 18.7.6.1010
oem107.inf     | iastorac.inf                                    | No    | SCSIAdapter           | Intel Corporation             | 2022-09-19 | 18.37.6.1010
oem108.inf     | iastorpinningcomponent.inf                      | No    | SoftwareComponent     | Intel Corporation             | 2022-09-19 | 18.7.6.1010
oem109.inf     | iastorhsacomponent.inf                          | No    | SoftwareComponent     | Intel Corporation             | 2022-09-19 | 18.7.6.1010

Pre-Extracted Drivers

blastille's repo has extracted drivers.

Extracting Drivers

If blastille's repo does not have the drivers you need, and you're able to get the correct installer from elsewhere, then the drivers are extracted from the RST installer using the following command

.\SetupRST.exe -extractdrivers SetupRST_extracted

The Process

  1. [OPTION a)] Could also do this later in the process with dism in [OPTION b)].
    1. Provision the iaStor drivers in your existing Windows install driver store using pnputil or however is convenient for you to install the .inf from the extracted iaStor driver.
    2. The injected drivers must include both the VMD driver and the HSA (hardware support application) driver(s). v20.2.26.1025 had 3 separate drivers, pnputil /recurse will all 3 in a single /Add-Driver command.
      1. iaStore
      2. HSA extension
      3. HSA component
  2. Use diskpart to assign a drive letter making the recovery partition available.
  3. Use dism to inject all of the drivers into the recovery environment.
    1. The directory structure of the recovery volume is hidden so cmd and dir /a are your friend.
    2. dism /Mount-Image requires a destination directory on a fixed/non-removable drive volume via /MountDir
      1. mkdir c:\mnt and remove it later.
    3. dism /Mount-Image...
    4. dism /Image:<mount dir> /Add-Driver /Driver:<driver dir> /recurse
    5. dism /Unmount-Image /MountDir<mount dir> /Commit
  4. Enable VMD in UEFI settings.
  5. Attempt to boot as normal.
    1. Should get the usual inaccessible boot device error.
  6. Reboot or power-off, power-on.
  7. Recovery is entered automatically.
    1. Drives should be available now in the recovery environment since the iaStor driver was added above.
  8. [OPTION b)] if you didn't use [OPTION a)].
    1. Use dism to inject the drivers into the now available existing Windows install which should now be visible as its usual sysdrive: (default, c:).
    2. dism command similar to above but using /image:<drive letter of existing Windows install>: /Add-Driver instead of mount, add driver, unmount.
  9. Stay in the recovery environment after exiting the recovery shell by typing "exit".
  10. Select "Startup Settings" from the recovery environment.
  11. Boot your existing install to Safe Mode.
  12. Run the full SetupRST.exe installer.
  13. Reboot letting Windows boot as normal and login.
  14. Let Windows store install the HSA (Hardware Support Application).
  15. Run the Intel VMD/RST/Optane hardware support application.
  16. Create hardware RAID volume.
    1. Running from the existing Windows install gives the option to preserve the contents of the installation during the creation process. This work for me for either RAID0 or RAID1.
      ...
  17. Profit

Variations on the theme - "You're Already Stuck so you..."

...could either,

  1. Create a (USB) bootable environment that has access to the drivers and perform the injections from there.
    1. Possibly even boot your install into Safe mode from there?
  2. Disable VMD/RST in UEFI settings and then follow the above process.
  3. Make sacrifices to the boot Gods and hope they are appeased enough to grant you access to your drives during the boot process.

..oh yeah, YMMV ;-)

[This comment as its own gist].

@namelessmasses
Copy link

...my entire journey in this also covered both bcdedit and chntpw in Linux to correct partition UUIDs referenced in the BCD after using cloning that reassigned UUIDs in the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment