• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.

How do I use devcon to update drivers?

3 posts in this topic

I am trying to update the drivers for a USB Stick using devcon.

I copied devcon to C:\ and the drivers to C:\drivers.

I opened cmd and executed the following command, to ensure I have the appropriate rights:

runas /u:Administrator cmd

In the Administrator shell I executed the following command:

C:\>devcon.exe hwids USBSTOR\GenDisk

and got this output:

Name: Intenso Premium USB Device
Hardware ID's:
Compatible ID's:
1 matching device(s) found.

Then, I executed this command:

C:\>devcon.exe update C:\drivers\cfadisk.inf "USBSTOR\DISK&VEN_INTENSO&PROD_PREM


And got this output:

Updating drivers for USBSTOR\DISK&VEN_INTENSO&PROD_PREMIUM&REV_0.00\091231000220
36&0 from C:\drivers\cfadisk.inf.
devcon.exe failed.

I cannot make out what I am doing wrong. The behavior I am expecting is described here.

But as you can see, I only get the nondescript "devcon.exe failed" message.

Can you help me?


Share this post

Link to post
Share on other sites

Cfadisk.inf has to contain the HardwareID.

Edit cfadisk.inf first:

%Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskIntenso_
%Microdrive_devdesc% = cfadisk_install,USBSTOR\GenDisk


devcon install  cfadisk.inf USBSTOR\DiskIntenso_


devcon install  cfadisk.inf USBSTOR\GenDisk

This is a generic approach:

cfadisk is connected to current attached USB storage devices


Share this post

Link to post
Share on other sites

Nice! Thanks man. I didn't know the HardwareID was DiskIntenso_, I thought it had to be String containing the Vendor ID etc, because that's what I put into the cfadisk.inf file.

This is weird, because I already tried GenDisk errrr but without the modifications in the inf file. That makes sense now. Thanks!

Edited by BdN3504

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.