Partilhar via


DevCon Install

Note

PnPUtil ships with every release of Windows and makes use of the most reliable and secure APIs available. Recomendamos usar PnPUtil em vez de DevCon. See Replacing DevCon for more information.

Cria um novo devnode enumerado pela raiz para um dispositivo não Plug and Play e instala seu software de suporte. Válido apenas no computador local.

devcon [/r] install INFfile HardwareID

Important

PnPUtil ships with every release of Windows and makes use of the most reliable and secure APIs available and its use is recommended. For more information on using PnPutil instead of devcon, see Replacing DevCon.

Parameters

/r

Conditional reboot. Reinicia o sistema depois de concluir uma operação quando uma reinicialização é necessária para tornar a alteração efetiva. Por padrão, o DevCon não reinicia o sistema.

INFfile

Especifica o caminho completo e o nome do arquivo INF para o dispositivo. Se você omitir o caminho, o DevCon assumirá que o arquivo está no diretório atual.

HardwareID

Especifica uma ID de hardware para o dispositivo.

O ID de hardware especificado deve corresponder exatamente ao ID de hardware do dispositivo. Os padrões não são válidos. Do not type a single quote character (') to indicate a literal value. For more information, see Hardware IDs and Device Identification Strings.

devgen /add /bus ROOT /hardwareid HardwareID
pnputil /add-driver INFfile /install

For more recommended replacements, see Replacing DevCon.

Comments

O sistema pode precisar ser reinicializado para tornar essa alteração efetiva. To have DevCon reboot the system, add the conditional reboot parameter (/r) to the command.

You cannot use the DevCon Install operation for Plug and Play devices.

The DevCon Install operation creates a new non-Plug and Play device node. Then, it uses the DevCon Update operation to install drivers for the newly added device. As a result, the success message for the DevCon Install operation reports that DevCon has created the device node and that it has updated the drivers for the device.

If any step of the DevCon Install operation fails, DevCon displays a failure message and does not proceed with the driver installation.

The DevCon Install command creates a new non-Plug and Play device node each time you run it. To update or reinstall drivers, use the DevCon Update command.

Sample usage

devcon install c:\windows\inf\newdvc.inf ISAPNP\CSC4324\0
devcon /r install c:\windows\inf\newdvc.inf ISAPNP\CSC4324\0

Examples

See also