The Origin Problem
I encountered an issue where I had a VM (W2k12) on Proxmox and needed more than one driver. However, I didn't know which driver was required, and pnputil was not available for Windows Server 2012 in the recovery console.
The First Solution
drvload drv.inf
May work, if you know which driver is the correct one. On a Server might being a Mess and may get frustating!
The Workaround Method
To work around this issue, I used the following solutions:
a. I ran the command for /r %d in (*.inf) do drvload %d
. This command searches recursively in the current directory and its subdirectories for all files and loads them as drivers. By doing this, I made sure that all available drivers were loaded into the system.
b. Once the drivers were loaded, I executed the following commands:
These commands assume that the Windows operating system is installed on the C: drive. The pnputil
command installs a driver with the specified .inf file using the -i -a
options. The dism command, which is used for servicing Windows images, adds a driver from the D: drive to the C: drive using the /Image:C:\ and /Driver:D:\ parameters. The /Recurse option ensures that the command recursively searches for drivers in the specified location.
Additionally, I used the following workaround steps:
cd /D D:
for /r %d in (*.inf) do drvload %d
for /r %d in (*.inf) do c:\windows\pnputil -i -a %d
In this case, I assumed that the D: drive represented my CDROM/USB drive, and there were .inf files present. These commands changed the directory to the D: drive using cd /D D:
, and then, using the for /r
loop, iterated through each .inf file.
The drvload command was used to install the driver in the recovery, and the c:\windows\pnputil -i -a
command installed the driver using the pnputil tool.
The workaround solutions I employed involved recursive searches and executing commands against each driver file found. This enabled the installation of multiple drivers even in cases where the native recursive function was not available, such as in Windows Server 2012.
drvload.exe <filename>.inf
worked fine for me in windows 10 Link: docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/…