介绍一个windows设备操作工具——devcon.exe

        Windows操作系统对设备的管理,可以通过设备管理器查看。在cmd窗口键入”devmgmt.msc“,即可打开设备管理器。本文要介绍的是微软提供的一个操作设备的工具软件——devcon.exe(Windows Device Console

        devcon.exe的全称是”Windows Device Console“,它是一个命令行工具,用于显示主机上挂载的设备的详细信息。我们也可以用来它来使能设备、删除和添加设备以及安装驱动等。(一个小技巧,可以用它来重起loacal PC)。

        下面将介绍它的使用方法:

1,软件路径,如下:

%WindowsSdkDir%\tools\x64\devcon.exe

从上面可以看出,它要求安装windows wdk,也可通过在”开始->所有应用->Windows kits->Windows Software Development Kits“,点击打开后,在该文件夹中找到”Tools->X64“,该目录下就有devcon.exe。

2,运行

1)使用”管理员权限“运行cmd;

2)转到devcon.exe所在目录,然后就可以开始操作了。



3)typed in "devcon help"即可查看它支持的各种命令

4)typed in "devcon help + command"即可查看该条命令

5)重启PC,只需要typed in "devcon reboot”即可

DevCon.exe 安装驱动的工具,微软官方源码。 修正编译通过,VS2013可调试 Device Console Help: devcon.exe [-r] [-m:\\<machine>] <command> [<arg>...] -r Reboots the system only when a restart or reboot is required. <machine> Specifies a remote computer. <command> Specifies a Devcon command (see command list below). <arg>... One or more arguments that modify a command. For help with a specific command, type: devcon.exe help <command> classfilter Add, delete, and reorder class filters. classes List all device setup classes. disable Disable devices. driverfiles List installed driver files for devices. drivernodes List driver nodes of devices. enable Enable devices. find Find devices. findall Find devices, including those that are not currently attached. help Display Devcon help. hwids List hardware IDs of devices. install Install a device manually. listclass List all devices in a setup class. reboot Reboot the local computer. remove Remove devices. rescan Scan for new hardware. resources List hardware resources for devices. restart Restart devices. sethwid Modify Hardware ID's of listed root-enumerated devices. stack List expected driver stack for devices. status List running status of devices. update Update a device manually. updateni Manually update a device (non interactive). dp_add Adds (installs) a third-party (OEM) driver package. dp_delete Deletes a third-party (OEM) driver package. dp_enum Lists the third-party (OEM) driver packages installed on this machine.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值