Lists all devices in the specified device setup classes. Valid on local and remote computers.
devcon [/m:\\computer] listclass class [class...]
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.
devcon listclass printers ports devcon /m:\\Server01 listclass SmartCardReader
Example 6: List the devices in a device setup class
Example 7: List the devices in multiple classes on a remote computer