9

This is mostly just for the USB ports, as I recognize everything else in computers... Anyway, is there a way to rename, or otherwise, identify which USB port (or other hardware for that matter) is which device in Device Manager?

I know I can plug in a flash drive, then see what port it is connected with, and find out that way. What I would like though, is to find out that a certain plug is always a certain device in Device Manager. If I can then I have a system in mind that always has the same order. I can look and see if a USB port is not being detected or not working properly, and as I uninstall/reinstall USB devices, I know I won't lose my keyboard or mouse, for example.

The OS in question currently is Windows 7, but I would accept a solution for ANY version of Windows

USB Devices
    |
    +--+USB Root Hub Port A
    |  |
    |  ---Keyboard
    |
    +--+USB Root Hub Port B
    |  |
    |  ---Mouse
    |
    +--+USB Root Hub Port C
       |
       ---Empty

4 Answers 4

1
  • Get the devcon utility if you don't have it already. It is a highly recommended tool. Instructions here
  • Unplug all USB devices from accessible ports, for example a webcam is USB as well, but you cannot really unplug it.
  • Plug in a device you know, something with a specific name is easier than a mouse. In the sample I used an ACR38.
  • List USB devices using devcon find *usb* (1).
  • Find the port ID in the end of the device string, and write it down (2).
  • Unplug the device and plug it in the next port, repeat two steps above until done (3).
  • Now you know which ID is which port. Either memorize the list, or use scripting tool or editor macro that does a find/replace on the console output for eah item in the list. Then you could use a batch file to produce output like (4)

(1)

>devcon find *usb*
USB\VID_072F&PID_9000\6&4E08F0F&0&4                         : ACR38 Smart Card Reader
USB\VID_8086&PID_0189\6&3023DF2C&0&5                        : Generic Bluetooth Adapter
USB\VID_0C45&PID_642A\6&174C4A1&0&4                         : USB Composite Device
USB\VID_8087&PID_0024\5&120253F1&0&1                        : Generic USB Hub
NUSB3\ROOT_HUB30\5&24981BD0&0                               : Renesas Electronics USB 3.0 Root Hub
USB\VID_0C45&PID_642A&MI_00\7&2669BE51&0&0000               : Integrated Webcam
USB\ROOT_HUB20\4&1D3C1330&0                                 : USB Root Hub
USB\VID_8087&PID_0024\5&7937534&0&1                         : Generic USB Hub
USB\ROOT_HUB20\4&236B341D&0                                 : USB Root Hub
9 matching device(s) found.

(2)

6&4E08F0F&0&4 = Port A (front right)

(3)

>devcon find *usb*
USB\VID_072F&PID_9000\6&4E08F0F&0&3                         : ACR38 Smart Card Reader
USB\VID_8086&PID_0189\6&3023DF2C&0&5                        : Generic Bluetooth Adapter
USB\VID_0C45&PID_642A\6&174C4A1&0&4                         : USB Composite Device
USB\VID_8087&PID_0024\5&120253F1&0&1                        : Generic USB Hub
NUSB3\ROOT_HUB30\5&24981BD0&0                               : Renesas Electronics USB 3.0 Root Hub
USB\VID_0C45&PID_642A&MI_00\7&2669BE51&0&0000               : Integrated Webcam
USB\ROOT_HUB20\4&1D3C1330&0                                 : USB Root Hub
USB\VID_8087&PID_0024\5&7937534&0&1                         : Generic USB Hub
USB\ROOT_HUB20\4&236B341D&0                                 : USB Root Hub
9 matching device(s) found.

6&4E08F0F&0&4 = Port A (front right)
6&4E08F0F&0&3 = Port B (front left)

(4)

After plugging in a mouse and doing find/replace in a macro with Notepad++ these are the first two lines of the output now:

USB\VID_072F&PID_9000\Port A (front right)                        : ACR38 Smart Card Reader
USB\VID_1532&PID_0013\Port B (front left)                         : USB Composite Device

[Note this answer requires the commandline, but I doubt this can be done with a simple UI like Device Manager, so I'll post it anyway. Also, I verified it only on one computer, so please verify this yourself first.]

2
  • I love using the command line, lol. My only issue is, I would like to see it in Device Manager, having it all automatic. I am downloading the WDK right now to check it out though, thanks for pointing me in the right direction. +1 Commented Jun 19, 2012 at 17:25
  • WDK might be a solution indeed, let us know how it turns out!
    – stijn
    Commented Jun 19, 2012 at 18:23
16

Based on: http://www.eightforums.com/customization/15321-tutorial-how-change-device-names-device-manager.html

  1. Open properties of the device in Device Manager
  2. Under the details tab, select Driver Key and copy the value it shows
  3. Open regedit and search for the value within HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum
  4. Give yourself ownership and full control over the key (folder) that you find it in
  5. Add a new string value with name FriendlyName. For data use whatever name you want it to have

The new name will take effect when you reopen Device Manager.

Appears to work on at least Vista, Windows 7, and Windows 8.

5
  • Worked for me to change the name in Device Manager. Helps identify which of multiple same-name devices is the one you wanna mess with.
    – Sawtaytoes
    Commented May 11, 2015 at 12:42
  • Worked for me, too. My context: Trying to get Nestopia to recognize more than one identical USB pad. Giving different names apparently lets Nestopia figure out that the pads are actually different. Otherwise, you only see one pad name in the input options pad dropdown even if you plugged in several pads. +1
    – William
    Commented May 13, 2016 at 4:14
  • 1
    Confirmed to work on Windows 10 as well. Commented Jan 21, 2017 at 8:29
  • 1
    I used USB Tree Viewer to directly open the required Registry key.
    – olee22
    Commented Jul 23, 2022 at 12:31
  • Works on Windows 11. Note that if you're using USB Tree Viewer, it will guide you to run RegEdit as administrator, so you don't need to change registry permissions.
    – user9876
    Commented Jun 14 at 12:25
1

You can change the name text in the '[Strings]' section of the .INF file included with the driver (edit it with Notepad), then run the setup.exe. Windows will then display that name in "Devices and Printers" and "Device Manager".

3
  • 1
    Just to confirm, this would have to be done BEFORE installing the drivers, right? Now, what about when the same device has multiple instances, such as above? Each "port" does not have its own driver Commented Jun 16, 2012 at 20:20
  • @Luke: He said "change the name" and then said "run the setup.exe". Commented Jun 17, 2012 at 14:01
  • In another version of this they indicated that you would need to install the device first, then change the driver. This is probably only necessary with devices loading the default drivers.
    – Trisped
    Commented May 11, 2015 at 18:55
1

Reopening is unnecessary - simply scan for hardware changes.

For myself, the use case was changing the name of multiple USB cameras.

This was the thieye e60i in webcam mode.

For me, the reg location on windows 10 was:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_1F3A&PID_100E&MI_00\8&1908368c&0&0000

Rather than the above location.

It already had a friendly name, so this was simply changed.

I tried unplugging and replugging into the same port and the changes appear to be persistent... which was nice.

3
  • I thought I added it as a comment on that answer. I will fix it in the morning :(
    – DarkFlib
    Commented Sep 6, 2017 at 3:26
  • Looks like I can't do that due to insufficient reputation. :( If a mod fancies moving it...
    – DarkFlib
    Commented Sep 6, 2017 at 14:06
  • The comment adds some bits with regards to Win 10 (answer only covered vista through 8)
    – DarkFlib
    Commented Sep 6, 2017 at 14:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .