Enable all devices that have a hardware ID of "*MSLOOP". The single quotation mark indicates
that the hardware ID must be taken literally (in other words, the asterisk ["*"] actually is an
asterisk; it is not a wildcard character).
devcon enable '*MSLOOP
List device instances of all devices that are present on the local computer.
devcon find *
List all known peripheral component interconnect (PCI) devices that are on the local
computer
(this command assumes that a device is PCI if it has a hardware ID that is prefixed by "PCI\").
devcon find pci\*
List devices that are a member of the ports setup class and that contain "PNP" in their hardware
ID.
devcon find =ports *pnp*
List devices that are present that are a member of the ports setup class and that are in the "root"
branch of the enum tree (the instance ID is prefixed by "root\"). Note that you should not make
any programmatic assumption about how an instance ID is formatted. To determine root
devices, you can look at device status bits. This feature is included in DevCon to aid in
debugging.
devcon find =ports @root\*
List "nonpresent" devices and devices that are present for the ports class. This includes
devices
that have been removed, devices that have been moved from one slot to another and, in some
cases, devices that have been enumerated differently due to a BIOS change.
devcon findall =ports
List all devices that are present for each class named (in this case, USB and 1394).
devcon listclass usb 1394
Remove all USB devices. Devices that are removed are listed with their removal status.
devcon remove @usb\*
Rescan for new Plug and Play devices.
devcon rescan
List the resources that are used by all devices in the ports setup class.
devcon resources =ports
Restart the loopback adaptor ROOT\*MSLOOP\0000. The single quotation mark in the
command indicates that the instance ID must be taken literally.
devcon restart =net @'ROOT\*MSLOOP\0000
List all hardware IDs of mouse class devices on the system.
devcon hwids=mouse
Assign the hardware ID, beep, to the legacy beep device.
devcon sethwid @ROOT\LEGACY_BEEP\0000 := beep
List the status of each device present that has an instance ID that begins with "pci\".
devcon status @pci\*
List the status of an Advanced Configuration and Power Interface (ACPI)-enumerated serial
port.
devcon status @ACPI\PNP0501\1
List the status of all COM ports.
devcon status *PNP05*
Chia sẻ với bạn bè của bạn: