Previous Next

DevCon ListClass

Lists all devices in the specified device setup classes. Valid on local and remote computers.

devcon [/m:\\computer] listclass class [class...] 

Parameters

/m:\\computer
Runs the command on the specified remote computer. The backslashes are required.
class
Specifies a device setup class. No equal sign (=) is required.

Comments

The /m parameter must precede the operation name (listclass). Otherwise, DevCon ignores the /m parameter and displays the devices on the local computer without returning a syntax error.

Each entry in a setup class display represents one device. The entry consists of the unique instance name and a description of the device in instance : description format.

To find the setup class of a particular device, use the DevCon Stack operation.

Sample Usage

devcon listclass printers ports
devcon /m:\\Server01 listclass SmartCardReader

Examples

Example 6: List the devices in a device setup class

Example 7: List the devices in multiple classes on a remote computer