Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8311731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:54:35+00:00 2026-06-08T19:54:35+00:00

Is it possible to remove a USB mass storage device by name using devon.exe?

  • 0

Is it possible to remove a USB mass storage device by name using devon.exe? The following code is used to remove all devices:

Devcon remove usbstor\*

but now I want to remove a particular device. For example, if 5 USBs are plugged in, A, B, C, D, E and F, I now want to remove only B. I know that instance id is used for this purpose but is it possible to remove using the device name? For example, like

Devcon remove usbstor\B

I tried this but it doesn’t work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:54:36+00:00Added an answer on June 8, 2026 at 7:54 pm

    You can remove an individual device by hardware ID. If you know the id, you can use the remove command, otherwise you’ll have to find out the hardware id. For more information see the help:

    Devcon Remove Command
    Removes devices with the specified hardware or instance ID. Valid only on
    the local computer. (To reboot when necesary, Include -r .)
    Devcon.exe [-r] remove <id> [<id>...]
    Devcon.exe [-r] remove =<class> [<id>...]
    <class>      Specifies a device setup class.
    Examples of <id>:
     *              - All devices
     ISAPNP\PNP0501 - Hardware ID
     *PNP*          - Hardware ID with wildcards  (* matches anything)
     @ISAPNP\*\*    - Instance ID with wildcards  (@ prefixes instance ID)
     '*PNP0501      - Hardware ID with apostrophe (' prefixes literal match - matches exactly as typed,
                                                   including the asterisk.)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to remove empty/blank lines using code formatting in Intellij IDEA?
Is it possible to remove purchases of non-consumable products in the AppStore using the
Possible Duplicate: Remove the date/time in my sql script generated using EM? Database -
Possible Duplicate: Remove CSS from a Div using JQuery we can set backgroung-image property
Its possible remove a window console title bar using c# and windows api, if
Possible Duplicate: How would that be possible to remove all event handlers of the
Possible Duplicate: remove application icon from the taskbar using .net with c# I am
Is it possible to remove the trailing slash / from a string using PHP?
Possible Duplicate: Remove non breaking space (&nbsp;) from between elements using jquery How to
Possible Duplicate: Remove all multiple spaces in Javascript and replace with single space How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.