DevCon FindAll

Finds all devices on the computer, including devices that were once attached to the computer but have been detached or moved. (These are known as nonpresent devices or phantom devices.) The DevCon FindAll operation also finds devices that are enumerated differently as a result of a BIOS change. Valid on local and remote computers.


    devcon [/m:\\computer] findall {* | ID [ID ...] | =class [ID [ID ...]]} 

   

Parameters

/m:\\computer

Runs the command on the specified remote computer. The backslashes are required.

Note   To run DevCon commands on a remote computer, the Group Policy setting must allow the Plug and Play service to run on the remote computer. On computers that run Windows Vista and later versions of Windows, the Group Policy disables remote access to the service by default.
*

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.

CharacterDescription

*

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 /m parameter must precede the operation name (findall). Otherwise, DevCon ignores the /m parameter and searches the local computer without returning a syntax error.

To find only devices that are currently attached to the computer, use the DevCon Find operation.

Sample Usage


devcon resources STORAGE\Volume
devcon resources =ports lpt*
devcon resources @pci*

Example

Example 22: Find (and find all) devices in a setup class

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft