DevCon工具基本使用

Posted bcbobo21cn

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DevCon工具基本使用相关的知识,希望对你有一定的参考价值。

根据WDK文档,DevCon工具的基本功能如下;

DevCon is a command-line tool that performs the following device management functions on local and remote computers;
DevCon是一个命令行工具,在本地或远程计算机上执行设备管理功能;
Display.  显示
Search.  搜索
Change. 更改
    Enable a device  使能设备 
    Disable a device  禁止设备
    Update drivers (interactive and noninteractive)  更新驱动程序
    Install a device (create a devnode and install software) 安装一个设备
    Remove a device from the device tree and delete its device stack 从设备树移除一个设备并删除它的设备栈
    Rescan for Plug and Play devices 扫描即插即用设备
    Add, delete, and reorder the hardware IDs of root-enumerated devices 对硬件ID添加、删除、排序
    Change the upper and lower filter drivers for a device setup class 为一个设备安装类改变上层和下层过滤驱动程序
    Add and delete third-party driver packages from the driver store 添加删除第三方驱动程序包
Restart. 重启
下面来看几个简单例子;

列出计算机上的所有已知 PCI 设备;

列出所有已知的安装类别;

 

列出本地计算机上存在的所有设备的设备实例;

 

列出命令中所列的每个类别(本例中是 USB 和 1394)的所有存在的设备;

 

列出系统中鼠标类设备的所有硬件 ID; 

 

先初步练一下;只是使用显示功能;使用其他功能可能引起系统挂掉;有时间再继续; 

 

以上是关于DevCon工具基本使用的主要内容,如果未能解决你的问题,请参考以下文章

win7里使用命令行检测硬件改动

没有 Devcon 的 C# Devcon 功能?

有没有方法可以删除驱动程序文件并在UWP应用程序中卸载设备?

如何使用PowerShell(winpe)获取Devcon输出的对象?

尝试从 WIX msi 运行嵌入式工具以进行选择性安装

如何使用基本工具栏显示ckeditor