Score:0

How to trigger automatic driver installation for a specific device from the commandline?

us flag

When you open the properties window for a device in the device manager there is an "Update Driver" option that allows you to automatically check if Windows Update has a driver for that device and if so automatically download and install it. (See the two screenshots below.)

I would like to trigger that for a specific device from a batch or powershell script. How could I do that?

I know that you can install drivers form the commandline via pnputil. E.g.

%WINDIR%\system32\pnputil.exe /add-driver .\my-driver.inf /install

But that requires you to already have the .inf file. I'm just looking for a way to automatically download and install a driver from Windows Update if possible.

screenshot 1 screenshot 2

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.