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
指定裝置的硬體識別碼。
指定的硬體識別碼必須完全符合裝置的硬體識別碼。 模式無效。 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