Muokkaa

Jaa


DevCon Update

Note

PnPUtil ships with every release of Windows and makes use of the most reliable and secure APIs available. We recommend using PnPUtil instead of DevCon. See the Recommended replacement below and Replacing DevCon for more information.

Forcibly replaces the current device drivers for a specified device with drivers listed in the specified INF file. Valid only on the local computer.

devcon [/r] update INFfile HardwareID

Parameters

/r

Conditional reboot. Reboots the system after completing an operation only if a reboot is required to make a change effective.

INFfile

Specifies the full path and file name of the INF (information) file used in the update. If you omit the path, DevCon assumes that the file is in the current directory.

HardwareID

Updates the drivers for devices with the specified hardware ID. The hardware ID specified in this command must exactly match the hardware ID of the device. Patterns are not valid. Do not type a single quote character (') to indicate a literal value.

pnputil /add-driver INFfile /install

For more recommended replacements, see Replacing DevCon.

Comments

The DevCon Update operation forces an update to the most appropriate drivers in the specified INF file, even if those drivers are older or less appropriate than the current drivers or the drivers in a different INF file. For more information, see How Setup Selects Drivers.

You cannot use a DevCon Update command to update drivers for nonpresent devices.

Before updating the driver for any device, determine which devices will be affected by the update command. To do so, use the hardware ID in a display command, such as DevCon HwIDs or DevCon DriverFiles. This is especially important in a DevCon Update operation because DevCon does not list the device drivers that it updates.

DevCon prompts the user if the INF file specifies an unsigned driver or if it cannot find a required file, such as a driver file on removable media. To suppress prompts that require a response, use the noninteractive update operation, DevCon UpdateNI.

The system might need to be rebooted to make this change effective. To have DevCon reboot the system, add the conditional reboot parameter (/r) to the command.

Sample usage

devcon update c:\windows\inf\newdvc.inf ISAPNP\CSC4324\0
devcon /r update c:\windows\inf\newdvc.inf *PNP030b

Example