USB device serial number may not be the same every time plugged into the computer

匿名
2023-06-01T02:15:22+00:00

I follow the windows API to get the device id(device instance path) to do the check in program.

But some specifice device will generate a different device id when plugged into the computer.

Could you tell me if this is a normal situation? Or is it because the device does not have a serial number so the system automatically generates it?

Different device id in same USB device

  • Target device id is USBSTOR\DISK&VEN_GENERAL&PROD_&REV_5.00\7&10F17E88&0&_&0 and the parent device id is USB\VID_ABCD&PID_1234\6&1C2C895A&0&2.
  • Target device id is USBSTOR\DISK&VEN_GENERAL&PROD_&REV_5.00\7&3664DFD2&0&_&0 and the parent device id is USB\VID_ABCD&PID_1234\6&1C2C895A&0&4

Please help to clarify the situation and provide the related information to me.

Thank you.

Windows for home | 其他 | 裝置和驅動程式

鎖定的問題。 此問題已從 Microsoft 支援服務社群移轉。 您可以對其是否有幫助進行投票,但無法對問題新增註解或回覆,或進行追蹤。

0 則留言 沒有留言
由問題作者接受的回答
匿名
2023-06-01T02:55:51+00:00

Hello Chris, my name is Marco and I will do my best to help you.

This can happen when a USB device doesn't have a serial number.

It's nothing serious so no worries...

The serial number of the USB device, Windows will recognize it regardless of the USB port used.

However, if it doesn't have a serial number, Windows treats each appearance on a different USB port as if it were a new device.

So it is possible that the device you are using does not have a serial number and that is why the system generates a different device ID each time it is plugged in.

此回答有幫助嗎?

有 2 人認為此回答有所幫助。
0 則留言 沒有留言

3 個其他答案

排序依據: 最實用
  1. 匿名
    2023-06-01T05:35:04+00:00

    USB device instance path is in device Properties -> Details -> selected Property "Device instance path".

    I have tried this scnario, but USB device instance path id not the changed device instance path, only volumn serial number in normal case.

    Do you know what kind of windows API can help us to clarify different Device instance path's serial number (USBSTOR\DISK&VEN_GENERAL&PROD_&REV_5.00\7&3664DFD2&0&_&0) ?

    Thank you.

    此回答有幫助嗎?

    0 則留言 沒有留言
  2. 匿名
    2023-06-01T04:33:54+00:00

    Hello Marco,

    Thank you for your information.

    Do you know how to find a USB device without a serial number in Windows Device Manager?

    I would like to make sure that the USB is not serial number but specified by system.

    or what kind of windows API can get related information to the program for the confirm?

    If it's a flash drive usb you can go here to know how: How to Change USB Serial Number in Windows 11/10/8/7? (diskpart.com)

    If it's a mouse or keyboard for example, the manufacturers write the serial number directly on the device.

    此回答有幫助嗎?

    0 則留言 沒有留言
  3. 匿名
    2023-06-01T03:12:45+00:00

    Hello Marco,

    Thank you for your information.

    Do you know how to find a USB device without a serial number in Windows Device Manager?

    I would like to make sure that the USB is not serial number but specified by system.

    or what kind of windows API can get related information to the program for the confirm?

    此回答有幫助嗎?

    0 則留言 沒有留言