Last active
January 9, 2026 01:57
-
-
Save TomCan/9644966 to your computer and use it in GitHub Desktop.
Inject drivers in Windows installation after motherboard change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
...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
Preserved OS Install
tl;drDISM injection ofiaStordriver into an environment that will boot your existing Windows install into Safe Mode where you can runSetupRST.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" DriverThe 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 wasPre-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_extractedThe Process
dismin [OPTION b)].iaStordrivers in your existing Windows install driver store usingpnputilor however is convenient for you to install the.inffrom the extractediaStordriver.pnputil /recursewill all 3 in a single/Add-Drivercommand.iaStorediskpartto assign a drive letter making the recovery partition available.dismto inject all of the drivers into the recovery environment.cmdanddir /aare your friend.dism /Mount-Imagerequires a destination directory on a fixed/non-removable drive volume via/MountDirmkdir c:\mntand remove it later.dism /Mount-Image...dism /Image:<mount dir> /Add-Driver /Driver:<driver dir> /recursedism /Unmount-Image /MountDir<mount dir> /CommitiaStordriver was added above.dismto inject the drivers into the now available existing Windows install which should now be visible as its usual sysdrive: (default,c:).dismcommand similar to above but using/image:<drive letter of existing Windows install>: /Add-Driverinstead of mount, add driver, unmount.SetupRST.exeinstaller....
Variations on the theme - "You're Already Stuck so you..."
...could either,
..oh yeah, YMMV ;-)
[This comment as its own gist].