How to restart USB device(如何重启USB设备)
2016-08-31 16:49
597 查看
使用devcon.exe (源代码及可执行程序请从:http://download.csdn.net/detail/dotphoenix/9617582 下载)
DevCon (Devcon.exe), the Device Console, is a command-line tool that displays detailed information about devices on computers running Windows. You can use DevCon to enable, disable, install, configure,
and remove devices.
DevCon runs on Microsoft Windows 2000 and later versions of Windows.
DevCon Restart
Stops and restarts the specified devices. Valid only on the local computer.
devcon [/r] restart {* | ID [ID ...] | =class [ID [ID ...]]}
Parameters
/r
Conditional reboot. Reboots the system after completing an operation only if a reboot is required to make a change effective.
*
Represents all devices on the computer.
ID
Specifies all or part of a hardware ID, compatible ID, or device instance ID of a device. When specifying multiple IDs, type a space between each ID. IDs that include an ampersand character (&) must be enclosed in quotation marks.
The following special characters modify the ID parameter.
Character Description
*
Matches any character or no character. Use the wildcard character (*) to create an ID pattern, for example, *disk*.
@
Indicates a device instance ID, for example, @ROOT\FTDISK\0000.
'
(single quote)
Matches the string literally (exactly as it appears). Precede a string with a single quote to indicate that an asterisk is part of the ID name and is not a wildcard character, for example, '*PNP0600, where *PNP0600 (including the asterisk) is the hardware ID.
=class
Specifies the device setup class of the devices. The equal sign (=) identifies the string as a class name.
You can also specify hardware IDs, compatible IDs, device instance IDs, or ID patterns following the class name. Type a space between each ID or pattern. DevCon finds devices in the class that match the specified IDs.
Comments
The system might need to be rebooted to make this change effective. To have DevCon reboot the system, add the conditional reboot parameter (/r) to the command.
Sample Usage
devcon restart *
devcon restart pci*
devcon restart "PCI\VEN_115D&DEV_0003&SUBSYS_0181115D"
devcon restart =printer
devcon restart =printer *desk*
Example
Example 38: Restart a device
DevCon (Devcon.exe), the Device Console, is a command-line tool that displays detailed information about devices on computers running Windows. You can use DevCon to enable, disable, install, configure,
and remove devices.
DevCon runs on Microsoft Windows 2000 and later versions of Windows.
DevCon Restart
Stops and restarts the specified devices. Valid only on the local computer.
devcon [/r] restart {* | ID [ID ...] | =class [ID [ID ...]]}
Parameters
/r
Conditional reboot. Reboots the system after completing an operation only if a reboot is required to make a change effective.
*
Represents all devices on the computer.
ID
Specifies all or part of a hardware ID, compatible ID, or device instance ID of a device. When specifying multiple IDs, type a space between each ID. IDs that include an ampersand character (&) must be enclosed in quotation marks.
The following special characters modify the ID parameter.
Character Description
*
Matches any character or no character. Use the wildcard character (*) to create an ID pattern, for example, *disk*.
@
Indicates a device instance ID, for example, @ROOT\FTDISK\0000.
'
(single quote)
Matches the string literally (exactly as it appears). Precede a string with a single quote to indicate that an asterisk is part of the ID name and is not a wildcard character, for example, '*PNP0600, where *PNP0600 (including the asterisk) is the hardware ID.
=class
Specifies the device setup class of the devices. The equal sign (=) identifies the string as a class name.
You can also specify hardware IDs, compatible IDs, device instance IDs, or ID patterns following the class name. Type a space between each ID or pattern. DevCon finds devices in the class that match the specified IDs.
Comments
The system might need to be rebooted to make this change effective. To have DevCon reboot the system, add the conditional reboot parameter (/r) to the command.
Sample Usage
devcon restart *
devcon restart pci*
devcon restart "PCI\VEN_115D&DEV_0003&SUBSYS_0181115D"
devcon restart =printer
devcon restart =printer *desk*
Example
Example 38: Restart a device
相关文章推荐
- Mac笔记本电脑 睡眠失败,硬关机之后,启动不了!还好折腾好了
- How to Reset MySQL root Password on CentOS
- Graceful Restart in Golang
- windows重启系统
- mysql innodb启动失败无法重启的处理方法
- oracle restart:语句重新执行
- android restart reason机制
- 重启多个tomcat,可打包成jar文件直接运行
- nova service restart
- service restart和reload区别
- RTNETLINK answers: File exists Error adding address 的解决方法
- mac 下添加mysql开机启动
- 如何应对电信PPPOE拨号用户24/48小时断线一次
- 让pt-slave-restart支持MariaDB 推荐
- 本地lnmp配置好项目,重起nginx
- QTime
- 停止、重新启动Activity
- Docker容器的重启策略及docker run的--restart选项详解