Windows: how to install driver from recovery command prompt?

10

6

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.

Oleg Titov

Posted 2013-01-09T18:23:20.610

Reputation: 233

1

drvload.exe <filename>.inf worked fine for me in windows 10

Link: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/drvload-command-line-options

– mgoetzke – 2019-08-20T09:10:42.357

Answers

7

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.

magicandre1981

Posted 2013-01-09T18:23:20.610

Reputation: 86 560

Thanks for the help. Still have BSOD after controller mode change. Guess, this drivers should be mirrired on windows boot partition or something like that... – Oleg Titov – 2013-01-10T12:01:58.620

can you change the Mode back to AHCI, boot to Windows and install the driver there? – magicandre1981 – 2013-01-10T16:54:17.380

Yes, But it does not help. Intel's GUI installer installs only AHCI since no RAID is present, and using .inf I have BSOD. – Oleg Titov – 2013-01-10T18:07:49.683

In Device manager select "add legacy device" and select the Intel RAID driver here. Now reboot and change the mode again. – magicandre1981 – 2013-01-10T20:52:01.113

when pointing to the folder with intel drivers nothing happens. I guess, because this drivers already installed in the system... Still BSOD after reboot with RAID mode. – Oleg Titov – 2013-01-11T02:33:34.503

3Damn it! Safe mode boots normally with RAID mode. Further installation via normal graphical installer make posiible to boot without safe mode. So the real problem is solved. – Oleg Titov – 2013-01-11T03:05:38.560

10

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, ...).

devurandom

Posted 2013-01-09T18:23:20.610

Reputation: 133