13.08.2019
Posted by 

Autorun driver free download - No Autorun, Autorun Max, AutoRun Pro, and many more programs. Autorun driver free download - No Autorun, Autorun Max, AutoRun Pro, and many more programs. Microsoft Autoruns will show you which programs are set to run during login or system bootup. It's geared for advanced users, but if you need to find a startup item other programs can't find, this.

  1. How To Autorun A Program
Active2 months ago

I am working in windows 8.1.I need to install a driver file(.inf file) from command line. Which command i need to use.?I know i have many other method for installing a .inf file, but i must install this from command line.

Please help meThanks in advance...

yemansyemans
2573 gold badges8 silver badges15 bronze badges

3 Answers

Granger's comment works in Windows 7 too. According to MS, PnPUtil (PnPUtil.exe) is included in every version of Windows, starting with Windows Vista.

How to use driver pack autorun easter eggsRun

It is useful for device drivers that do not have default install (right-click 'Install' does not work for them).

pnputil -i -a <driverinf>

How To Use Driver Pack Autorun EastRoland PihlakasRoland Pihlakas
2,4781 gold badge27 silver badges53 bronze badges

There are many variants ... and many complications with newer versions of Windows.

But for starters, try something like this:

rundll32.exe advpack.dll,LaunchINFSectionEx myinf.inf,c:tempmydata.cab,36

Note: beware older links that suggest 'setupapi' instead of 'advpack'. You definitely want advpack.dll.

Community
FoggyDayFoggyDay
7,5463 gold badges15 silver badges22 bronze badges

The default way for device drivers is:

Legacy Drivers can´t be installed with pnputil and have to use LaunchINFSectionEx-Call

I tested the following and it works with several drivers from Windows 2000 up to Windows 10, 2012R2, 2016, 2019.

Pay attention to use the correct section

The correct section of the inf-File must be used, when there is no [DefaultInstall]-Section. This lacks in most answers. Look it up in your drivers inf-File and use the correct section (in my example 'Yubico64_Install.NT'). Using the wrong section wont prompt an error. Im my example I use Quiet mode, no UI (4) and Never reboot (N) to install the driver automated via GPO. All options are documented in detail here:

x0nnx0nn

How To Autorun A Program

Not the answer you're looking for? Browse other questions tagged command-linedriverinf or ask your own question.