The Command Prompt is one utility that lots of the energy customers love to make use of and have grown with it. If you didn’t know, however it’s doable to run Windows Update from the command line. Similarly, it’s also doable to replace drivers utilizing the Command Prompt.
Microsoft provides a built-in utility PnPUtil.exe that permits an administrator so as to add a driver package deal, set up or replace and delete a driver package deal from the motive force retailer. You can even discover out the checklist of driver packages presently put in within the driver retailer. In this publish, we are going to present how one can add drivers utilizing the Command Prompt.
If you wish to examine you could have it, all it’s essential do is open the command immediate and sort PNPUtil.exe and press the Enter key. If there isn’t any error, you might be good to go.
Update Drivers utilizing Command Prompt
This methodology won’t obtain the motive force package deal from the web. You should obtain the package deal from the OEM web site or copy it from USB or storage media, and duplicate it to the pc.
Once executed, you possibly can then use the motive force with the utility to put in or replace the motive force. You should present the trail to the INF file which holds info of the motive force to be put in.
pnputil [/add-driver <...> | /delete-driver <...> | /export-driver <...> | /enum-drivers | /disable-device <...> | /enable-device <...> | /restart-device <...> | /remove-device <...> | /scan-devices <...> | /enum-devices <...> | /enum-interfaces <...> | /?]
Here is the syntax, as acknowledged in microsoft.com:
pnputil /add-driver * <filename.inf | .inf> [/subdirs] [/install] [/reboot] /subdirs - traverse sub directories for driver packages. /set up - set up/replace drivers on any matching gadgets. /reboot - reboot system if wanted to finish the operation.
Examples of utilizing the PnPUtil command
You can use the /set up possibility to put in a brand new driver or replace an current one.
Add driver package deal
pnputil /set up x:driver.inf
Add a number of driver packages
pnputil /set up c:oem*.inf
Add and set up the motive force package deal
pnputil /set up machine.inf /set up
That stated, the utility can return info, which might counsel if a reboot is required. If you don’t get something or a zero, all is effectively. However, when you get
ERROR SUCCESS REBOOT REQUIRED (3010) then a system reboot is required. It occurs when the reboot shouldn’t be used throughout set up or replace. In case a restart is required, then you’ll obtain
ERROR SUCCESS REBOOT INITIATED (1641) which suggests the replace was profitable, and the system reboot is underway.
The utility can even discover or enumerates the motive force packages which can be presently within the driver retailer. However, it can solely checklist driver packages that aren’t in-box packages are listed. An in-box driver package deal is one that’s included within the default set up of Windows or its service packs.
There is one other command known as Drvload, however it solely works within the Windows PE setting, so from a shopper or admin perspective, you’ll have to use the PnPUtil to replace or set up a brand new driver in Windows 10.