Windows Device Console (Devcon.exe) - Windows drivers (original) (raw)

DevCon (Devcon.exe), the Device Console, is a command-line tool that displays detailed information about devices on computers running Windows. You can use DevCon to enable, disable, install, configure, and remove devices.

Important

PnPUtil ships with every release of Windows and makes use of the most reliable and secure APIs available and its use is recommended. For more information on using PnPutil instead of devcon, see Replacing DevCon.

Where can I download DevCon?

DevCon (Devcon.exe) is included when you install the WDK, Visual Studio, and the Windows SDK for desktop apps. For information about downloading the kits, see Windows Hardware Downloads.

Windows Driver Kit (WDK) 10 version (installation path)

The %WdkDir% represents the directory the WDK was installed into and X.Y refers to the version of the Windows Driver Kit. For example, if you have a recent WDK, the DevCon tool would be located in the directory path C:\Program Files (x86)\Windows Kits\10\Tools\10.0.26100.0\x64\devcon.exe for 64-bit systems.

In this section

What you can do with DevCon

Windows driver developers and testers can use DevCon to verify that a driver is installed and configured correctly, including the proper INF files, driver stack, driver files, and driver package. You can also use the DevCon commands (enable, disable, install, start, stop, and continue) in scripts to test the driver.

DevCon is a command-line tool that performs device management functions on local computers.

Devcon features include:

DevCon source code

The DevCon source code is also available so that you can examine the methods that DevCon uses to retrieve and change setup and configuration data. DevCon illustrates the use of general setup functions, device installation functions, and PnP Configuration Manager functions. The source code for the Device Console (DevCon) Tool is available in the Windows driver samples repository on GitHub.