How to Obtain the Current Version of Device Console Utility (DevCon.exe)

How to Obtain the Current Version of Device Console Utility (DevCon.exe)

 This topic is a how to.
Please keep it as clear and simple as possible. Avoid speculative discussions as well as deep dive into underlying mechanisms or related technologies.

(what is this box?)

There are two main sources one can use to obtain Device Console utility (DevCon.exe). To find out what DevCon.exe is please read How to Manage Device Drivers with Command Line.

Windows Driver Kit (WDK)

This is the recommended option.

  1. Download Windows Driver Kit. See “Links” section for dowonload location of the most recent version of WDK.
  2. Extract or mount ISO.
  3. To obtain DevCon.exe you need either to:
    • install WDK:
      • execute KitSetup.exe and follow on-screen instructions.
    • or perform Administrative Installation of “setuptools_<Platform>freMicrosoft Software Installer (MSI) package:
      • execute the following command:
        • "%SystemRoot%\System32\msiexec.exe" /a "<path to WDK>\setuptools_<Platform>fre.msi" targetdir="<Desired Path>"
      • for example, assuming that:
        • you need DevCon.exe for x64 (aka AMD64 aka EM64T) platform,
        • you mounted WDK ISO as drive D:,
        • you want to find DevCon.exe under your Temporary directory;
      • you should execute:
        • "%SystemRoot%\System32\msiexec.exe" /a "D:\WDK\setuptools_x64fre.msi" targetdir="%temp%"

Separate download

Microsoft Support Knowledge Base article 311272 “The DevCon command-line utility functions as an alternative to Device Manager” contains direct download link.. This option is not recommended because:

  1. you obtain outdated version of DevCon.exe which is 5.2.3790.0 (srv03_rtm.030324-2048). This was intended to work with Windows Server 2003. This version may or may not work correctly with more recent versions of Windows;
  2. you can obtain version of DevCon.exe to work on the following platforms:
    • x86 (aka i386) or
    • ia64 (aka Intel Itanium);
  3. using this option you can not obtain version of DevCon.exe for x64 (aka AMD64 aka EM64T) platform. If you don't match the platform DevCon.exe might be partially functional. For example if you try to use x86 version of DevCon.exe with x64 OS it would correctly read and display information but return errors if you try to make some changes (e.g. update a driver).

Links

  • The current version of Windows Driver Kit (WDK) is 6.1.7600.16385 (win7_wdk.100208-1538). You can download it at Windows Driver Kit Version 7.1.0.
    • Note: this is a revised version of WDK for Windows 7 and Windows Server 2008 R2. The original version of WDK for Windows 7 and Windows Server 2008 R2 is 6.1.7600.16385 (win7_rtm.090713-1255).
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Why not just update KB311272!!! Really annoying that 64-bit version is not easily downloadable but thanks for the article - now I know why it does not work!

  • I agree with Steve6375.  This is absolutely silly!

  • Add tag for command line

  • Add tag for command line

  • Add tag for command line

  • Quit understandable to download and extract a 600+ MB ISO for a 600+KB exe file )-;

  • I have Win7 x64 but I still cannot query remote Win7 machines.  I can only query locally or Windows XP or Server 2003.  I followed the instructions above.  I'm running the command prompt as administrator.  Please help!

  • Well, +1 with everyone else - 600mb file for a 80k file seems a little insane.

    For what it's worth I've uploaded a copy devcon AMD64 extracted from the Windows Driver Kit 7.1.0: dl.dropbox.com/.../devcon-7600.16385.win7_wdk.100208-1538-x64.zip

    Yeah, I know, downloading an .exe from some random person on the Internet would generally seem like a bad idea, and I probably wouldn't use it in your position -- but if you feel like rolling the dice the link is there.  For what it's worth, I give my personal assurance that it's legit :)

    size (extracted): 81,920 bytes

    md5: 3904d0698962e09da946046020cbcb17

    sha1: edae098e7e8452ca6c125cf6362dda3f4d78f0ae

  • Thank you Alan. I can verify that the download you provided is legitimate. I scanned it with AVG as soon as I downloaded it and it came up clean. I have also run it and verified that it works as expected.

    The devcon version included in his upload is 6.1.7600.16385. And just to clarify, the md5 and sha1 checksums provided are for the extracted devcon.exe file. The download is a zip file including both the devcon.exe file and the license.rtf file.

    Checksums for the zip file itself:

    md5:    59424845D7814792F53DB2C0FA5042A4

    sha1:   4AB5745CB0673F5AEB319A1518933BCEF3F6FD68

  • I downloaded this devcon zip but when I ran "devcon rescan" it fails. Do I need anything else that comes with WDK?

Page 1 of 2 (13 items) 12