DevCon ListClass

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

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


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 Windows 7, the Group Policy disables remote access to the service by default. On computers that run WDK 8.1 and WDK 8, the remote access is unavailable.

Specifies a device setup class. No equal sign (=) is required.


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


Example 6: List the devices in a device setup class

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