Windows: how to install driver from recovery command prompt?
I'm trying to enable Intel SRT on my laptop. To do this, I need to change SATA controller mode from AHCI to RAID. The problem is that windows has no drivers for RAID and I can't install it while controller is in AHCI mode.
For now I have RAID driver in INF package (inf, sys, cat files). And I can load Windows recovery console with controller in RAID mode. The last thing to do is to intall this driver, but I don't know how to do it.
Google says rundll32.exe setupapi,InstallHinfSection DefaultInstall 123 <filename>.inf
might help, but it doesn't.
Solution 1:
use pnputil to add the driver to the driver store. Windows now detects the driver:
pnputil.exe -a C:\<filename>.INF
And you should add the drivers before changing the mode.
Solution 2:
For me pnputil.exe
did not do the trick. However, I found the following command, which helped: dism /Image:C:\ /Add-Driver /Driver:D:\ /Recurse
. This assumes that your Windows is installed at C:\
and the disk with the driver is present at D:\
. This appears to even work, if the disk contains drivers for different architectures (x86 and x64) and operating system versions (XP, 7, ...).