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; 

 

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

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
devcon 绿色中文版 DevCon 实用工具是一种命令行实用工具,可以替代设备管理器。使用 DevCon,您可以启用、禁用、重新启动、更新、删除和查询单个设备或一组设备。DevCon 提供与开发人员有关但无法在设备管理器中看到的信息。   您可以将 DevCon 用于 Windows 2000 、Windows XP和Windows vista。不能将 Devcon 用于 Microsoft Windows 95、Windows 98、或 Windows Millennium Edition。 devcon.exe [-r] [-m:\\] [] -r if specified will reboot machine after command is complete, if needed. 目标机器名字. 命令(见下面). 传给命令的参数. For help on a specific command, type: devcon.exe help classfilter 允许修改class filters. classes 显示设备安装classes. disable 用指定的硬件名称或者instance ID禁用设备 driverfiles 列出设备安装的驱动文件. drivernodes 显示设备的所有节点的驱动. enable 用指定的硬件名称或者instance ID启用设备. find 用指定的硬件名称或者instance ID查找设备. findall 查找所有硬件设备包括不显示的. help 显示帮助信息. hwids 显示设备硬件ID. install 手动安装设备. listclass 显示所有设备的安装 class. reboot 重启本地机器. remove 用指定的硬件名称或者instance ID删除设备. rescan 从新扫描硬件信息. resources 显示设备使用硬件资源. restart 用指定的硬件名称或者instance ID重启设备. stack 列出设备的驱动堆栈. status 列出设备的状态. update 手动更新设备驱动. updateNI 不显示用户界面的更新设备状态 SetHwID 添加、删除、编辑硬件ID的顺序. 现在看看例子: devcon -m:\\test find pci\* 如果你开启了test机器上的IPC$的话,就可以列出test上所有知道的PCI设备 devcon -r install %WINDIR%\Inf\Netloop.inf *MSLOOP 安装一个新的Microsoft loopback adaptor实例,如果要重启的话,该命令会自动重启 devcon classes 显示所有知道的安装类。包括未认识的设备如: "USB" 和描述名字如:"Universal Serial Bus controllers". devcon classfilter upper !filter1 !filter2 删除两个指定的classfilter . devcon classfilter lower !badfilter +goodfilter 用"goodfilter"替换"badfilter". devcon driverfiles =ports 列出被ports安装类使用的设备驱动文件 devcon disable *MSLOOP 禁用所有硬件ID结尾有"MSLOOP"的设备 devcon drivernodes @ROOT\PCI_HAL\PNP0A03 列出所有 ROOT\PCI_HAL\PNP0A03的兼容驱动.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值