-
-
Save TomCan/9644966 to your computer and use it in GitHub Desktop.
| 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. |
As if you didn't hear this enough, THANK YOU SO MUCH!
add driver option is unknown?
Interestingly DISM Image Management Command-Line Options does not list the option, but DISM Driver Servicing (.inf) Command-Line Options does.
Unfortunally i have Error 87 and the process end.
any workaround?
Unfortunally i have Error 87 and the process end. any workaround?
Can you provide a screenshot or at least all of the text from the error message? Context is very important, and the error message text can convey a lot more information than just the error number.
Thank you so much
Thank you!!!
Scenario:
- doing a BareMetalRestore from HP z420 to HP Z2 G9
- Windows will start, if VMD in Bios is disabled. In Windows, you can also install all HP-driver. Excluding the VMD-driver, because there is no hardware enabled.
- Windows runs into BSOD, if VMD in Bios is enabled
- after a lot of headache, i found this post, which saved my weekend ;)
- now i've a nvme-raid and i'm happy
Unfortunally i have Error 87 and the process end. any workaround?
Can you provide a screenshot or at least all of the text from the error message? Context is very important, and the error message text can convey a lot more information than just the error number.
I'm also getting the exact error 87. When I do dism /?, the add-driver and add-package option is not listed. I'm on Windows 11 24H2.
Below is the full error message.
PS C:\Users\Admin> Dism /Image:"F:\z2\zMount" /Add-Driver /Driver:"F:\z2\2Drivers-Boot" /Recurse
Deployment Image Servicing and Management tool
Version: 10.0.26100.1150
Image Version: 10.0.19041.1288
Error: 87
The add-driver option is unknown.
For more information, refer to the help by running DISM.exe /?.
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
This aboslutely saved my ass. Saving this for fututre reference. THANK YOU,
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.
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...
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:
- Download SergeiStrelec WinPE. The link can be found via a Google Search.
- Write the WinPE .iso file to a USB Drive using Rufus to make a USB Bootable Drive
- 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.
- 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.
- Once you are booted to the WinPE desktop, search for the Dism++ tool.
- 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
- Click on Drivers on the left hand side
- Click on Add, it will ask you to browse to the location of the driver you want to add
- Choose the Driver folder that you placed on the USB Drive in Step 3.
- 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!
Love u!!! Many tahnks bro!
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
- 13th Gen i9 13900HX
- RST VMD Controller A77F
- Driver version 20.2.26.1025
- Archived installer .exe
- Archived extracted iaStor driver
- At the time of writing, this driver supported 12th - 15th gen. platforms.
Credits and Other References
- Intel documentation
- @TomCan's/this gist
- ...and, as I'm writing up all of this, I find XinGuo's response on "MSLearn".
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.1010Pre-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
- [OPTION a)] Could also do this later in the process with
dismin [OPTION b)].- Provision the
iaStordrivers in your existing Windows install driver store usingpnputilor however is convenient for you to install the.inffrom the extractediaStordriver. - 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 /recursewill all 3 in a single/Add-Drivercommand.iaStore- HSA extension
- HSA component
- Provision the
- Use
diskpartto assign a drive letter making the recovery partition available. - Use
dismto inject all of the drivers into the recovery environment.- The directory structure of the recovery volume is hidden so
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> /Commit
- The directory structure of the recovery volume is hidden so
- Enable VMD in UEFI settings.
- Attempt to boot as normal.
- Should get the usual inaccessible boot device error.
- Reboot or power-off, power-on.
- Recovery is entered automatically.
- Drives should be available now in the recovery environment since the
iaStordriver was added above.
- Drives should be available now in the recovery environment since the
- [OPTION b)] if you didn't use [OPTION a)].
- Use
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.
- Use
- Stay in the recovery environment after exiting the recovery shell by typing "exit".
- Select "Startup Settings" from the recovery environment.
- Boot your existing install to Safe Mode.
- Run the full
SetupRST.exeinstaller. - Reboot letting Windows boot as normal and login.
- Let Windows store install the HSA (Hardware Support Application).
- Run the Intel VMD/RST/Optane hardware support application.
- Create hardware RAID volume.
- 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.
...
- 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.
- Profit
Variations on the theme - "You're Already Stuck so you..."
...could either,
- Create a (USB) bootable environment that has access to the drivers and perform the injections from there.
- Possibly even boot your install into Safe mode from there?
- Disable VMD/RST in UEFI settings and then follow the above process.
- 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].
...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.
Hello, I'm trying to follow the guide but I'm getting a error 87, add driver option is unknown?
I copied the same command and only changes C and D to my systems drive letters, I check the uppercase lower case everything was copy paste from the command