DevCon Status

Displays the status (running, stopped, or disabled) of the driver for devices on the computer. Valid on local and remote computers.

    devcon [/m:\\computer] status {* | 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 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.

\*
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.

Character Description

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 (status). Otherwise, DevCon ignores the /m parameter and displays the status of device drivers on the local computer without returning a syntax error.

If DevCon cannot determine the status of the device, such as when the device is no longer attached to the computer, DevCon omits the line describing the status from the status display.

The following example shows a successful status command. The text describing the device status appears in bold type.

STORAGE\VOLUME\1&30A96598&0&SIGNATURE80OFFSET7E0000LENGTH270987600
    Name: Generic volume
    Driver is running.
1 matching device(s) found.

In contrast, the following example shows how DevCon displays the status of a device that it cannot find. The status description is missing from the display.

STORAGE\VOLUME\1&30A96598&0&SIGNATURE80OFFSET7E0000LENGTH270987600
    Name: Generic volume
1 matching device(s) found.

Sample Usage

devcon /m:\\Server01 status *
devcon status pci*
devcon status "PCI\VEN_115D&DEV_0003&SUBSYS_0181115D"
devcon status =printer

Examples

Example 17: Display the status of all devices on the local computer

Example 18: Display the status of a device by device instance ID

Example 19: Display the status of related devices on a remote computer