Note
PnPUtil ships with every release of Windows and makes use of the most reliable and secure APIs available. 建议使用 PnPUtil 而不是 DevCon。 See Replacing DevCon for more information.
为非即插即用设备创建新的根枚举开发节点并安装其支持软件。 仅在本地计算机上有效。
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. 当需要重新启动才能使更改生效时,在完成作后重新启动系统。 默认情况下,DevCon 不会重新启动系统。
INFfile
指定设备 INF 文件的完整路径和文件名。 如果省略路径,DevCon 假定该文件位于当前目录中。
HardwareID
指定设备的硬件 ID。
指定的硬件 ID 必须与设备的硬件 ID 完全匹配。 模式无效。 Do not type a single quote character (') to indicate a literal value. For more information, see Hardware IDs and Device Identification Strings.
Recommended replacement
devgen /add /bus ROOT /hardwareid HardwareID
pnputil /add-driver INFfile /install
For more recommended replacements, see Replacing DevCon.
Comments
系统可能需要重新启动才能使此更改生效。 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