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.
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: