Update 2013-06-22: I recently deleted a comment by a reader who posted a link to the versions of DevCon that he had extracted from the Windows Driver Kit. Redistribution of Microsoft software without consent is usually a violation of our End User License Agreements. Downloading and using such redistributed software may also place you at risk for malware infections. Please do not do this. Such links as this that appear here in the future will also be removed.
To obtain the latest versions of DevCon, please download and install the official Windows Driver Kit for matching version of Windows from here: http://msdn.microsoft.com/en-us/library/windows/hardware/gg487428.aspx. You will find the DevCon executables in the installation directory of the WDK.
The DevCon utility acts as a command-line version of Device Manager. Using DevCon, you can enable, disable, restart, update, remove, and query individual devices or groups of devices. However, because this utility is not part of the operating system many people have had trouble locating the correct version for each OS architecture.
DevCon started life as a sample in the Windows Driver Development Kit. The first compiled sample for administrator use was provided in Microsoft Knowledge Base article 311272. However, I recommend that use use the newest versions which are provided in the Windows Server 2003 Service Pack 2 Support Tools.
- The x86 version can be found in the Windows Server 2003 Service Pack 2 32-bit Support Tools: http://www.microsoft.com/downloads/details.aspx?familyid=96A35011-FD83-419D-939B-9A772EA2DF90
- The x64 version can be found in the Support Tools on the Windows Server 2003 Service Pack 2, x64 Editions ISO image file (in the \Support\Tools folder): http://www.microsoft.com/downloads/details.aspx?familyid=8A6EBFB5-833D-44E2-BF92-44648A8BB250
- The Itanium (IA-64) version can be found in the Support Tools on the Windows Server 2003 Service Pack 2 for Itanium-based Systems ISO image file (in the \Support\Tools folder): http://www.microsoft.com/downloads/details.aspx?familyid=803F39EA-50AC-43CA-B564-75C5C080E471
You can extract devcon.exe for each platform from support.cab in each case.
If you need help with using DevCon, here are a few sources of information:
- Devcon Overview
- DEVCON - Command Line Utility Alternative to Device Manager
- The DevCon command-line utility functions as an alternative to Device Manager
This post was contributed by Michael Murgolo, a Senior Consultant with Microsoft Services - U.S. East Region.