Detailed Exploration: Retrieving the True Nature of Device IDs in Windows

Detailed Exploration: Retrieving the True Nature of Device IDs in Windows

Joseph Lv10

Detailed Exploration: Retrieving the True Nature of Device IDs in Windows

A hardware ID is a unique identification number given to hardware components. It’s associated with the devices that you attach to your PC or the ones already connected to it.

This identification number can be helpful when you want to download the correct device drivers. That’s because if you know the hardware ID, then you can use it to search for a specific driver online.

Let’s discover the various ways to check your hardware IDs on Windows.

1. Use the Device Manager

The Device Manager is a tool that helps you tweak the settings for almost all the devices that are connected to your PC. You can also use this tool to update or reinstall the device drivers.

Now, let’s check out how you can use the Device Manager to search for the hardware IDs:

  1. PressWin + Run to open the Run command dialog box. Alternatively, check outthe various ways to access the Run command dialog box .
  2. Typedevmgmt.msc and pressEnter to open the Device Manager.
  3. Expand the category for the device you want to look up. For example, expand theKeyboards category if you want the hardware ID for your keyboard.
  4. Right-click on the relevant device and selectProperties .
  5. Navigate to theDetails tab.
  6. Click theProperty drop-down menu and selectHardware Ids . You should see the hardware ID results in the “Value” box.

Clicking the Property drop-down menu and selecting Hardware Ids

You might often see more than one ID in the “Value” box. In such instances, you should only focus on the hardware ID that appears at the top.

Don’t confuse a hardware ID with a compatible ID. A hardware ID is a unique identification number given to a specific device. Meanwhile, a compatible ID is a generic identification number given to a group of devices.

2. Use the Command Prompt

A person typing commands on a laptop

The Command Prompt is an incredible tool that helps you access most apps, configure system settings, and troubleshoot device issues. You can also perform other tricks with it, such as checking the hardware IDs for your devices.

Let’s check out the steps you need to follow:

  1. PressWin + R to open the Run command dialog box.
  2. TypeCMD and pressCtrl + Shift + Enter to open an elevated Command Prompt.
  3. Type the following command to get a list of all your drivers and devices:

Dism /Online /Get-Drivers /all /Format:Table

Displaying device information on the Command Prompt

Now, let’s say you want the hardware ID for the mouse. Here’s how you can search for it:

  1. Scroll down on the Command Prompt results and locateMouse in the “Class Name” category.
  2. In the same row, check the option that appears in the “Published Name” category.

Selecting the mouse option "msmouse" in the Command Prompt results

In this case, the option in the “Published Name” category ismsmouse.inf .

Now that you’ve found the “Published Name” result for the mouse, here’s how you can use it to find the hardware ID:

  1. Open a newCommand Prompt window by following the previous steps.
  2. Type the following command and replacePublished Name with the relevant command:

Dism /Online /Get-DriverInfo /Driver:Published Name

For example, we discovered earlier that the “Published Name” result for the mouse ismsmouse.inf . If we insert this into the command above, then the result should be as follows:

Dism /Online /Get-DriverInfo /Driver:msmouse.inf

Now, pressEnter once you’ve typed in the correct command. From there, locate the “Hardware ID” option from the results.

Selecting the Hardware ID option in the Command Prompt screen

3. Use PowerShell

Alternatively, you can also check the hardware IDs usingWindows PowerShell . It’s another incredible tool that allows you to run various commands.

Let’s explore how you can check the hardware IDs using this tool:

  1. PressWin + R to open the Run command dialog box.
  2. TypePowerShell and pressCtrl + Shift + Enter to open the elevated PowerShell window.
  3. Type the following command to get a list of your drivers and devices:

Get-PnpDevice -PresentOnly | Sort-Object -Property “Class” | Format-Table -AutoSize

PowerShell window displaying device information

Now, look for your target device under the “FriendlyName” category.

For example, let’s say your target device is the keyboard. In this case, the option that appears in the “FriendlyName” category for the keyboard isStandard PS/2 Keyboard .

After finding your target device, check theInstance ID (the value that appears in the last column).

Selecting the Keyboard option from the PowerShell command options

For the keyboard, the Instance ID isACPI\IDEA0102\4&15E808EC&0 .

Now that you’ve found the Instance ID, here’s how you can use it to find the hardware ID:

  1. Open anelevated PowerShell window as per the previous steps.
  2. Type the following command and replace theInstance Id command with the relevant option:

Get-PnpDeviceProperty -InstanceId "Instance Id" | Format-Table -AutoSize

If we use the Instance ID for the keyboard (ACPI\IDEA0102\4&15E808EC&0), then the command should be as follows:

Get-PnpDeviceProperty -InstanceId "ACPI\IDEA0102\4&15E808EC&0" | Format-Table -AutoSize

Now, pressEnter to run the command. From there, look for theDEVPKEY_Device_HardwareIds option under theKeyName category.

Next, look for the corresponding value in the “Data” category. The value that appears in this section is the hardware ID.

Selecting the hardware ID option on PowerShell

In this case, the hardware ID for the keyboard (which appears in the “Data” category) isACPI\VEN_IDEA&DEV_0102 .

4. Use the Windows Device Console

The Device Console (DevCon) is a feature that shows you detailed information about the devices on your computer. This tool can also help you configure, install, remove, enable, or disable devices.

Interestingly, this tool allows you to view the hardware IDs of multiple apps simultaneously. Unfortunately, the Device Console isn’t built-in on your device. This means you need to download and install it first.

Let’s check out how you can install this tool and use it to check the hardware IDs:

  1. Download and install theWindows Drivers Kit from the Microsoft website. When you’re on the site, head to theStep 2: Install the WDK section and pick an app that’s compatible with your device.
  2. Once you’ve installed the tool, openFile Explorer and navigate to This PC > Local Disk (C:) > Program Files (x86) > Windows Kits > 10 > Tools . If you’re using Windows 11, the path should be This PC > Local Disk (C:) > Program Files (x86) > Windows Kits > 11 > Tools .
  3. Access thex64 (64-bit) folder if you’re using a 64-bit device or thex86 (32-bit) folder if you use a 32-bit PC. If you’re unsure what to pick,check your Windows PC specs first.

Selecting the x64 folder in the Tools section

Once you’re in the correct folder, follow these steps:

  1. Click theFile Explorer address bar .
  2. TypeCMD and then pressEnter . This will run the Command Prompt within the current folder.

Typing the CMD command in the File Explorer address bar

From there, type the following command into the Command Prompt and pressEnter :

devcon hwids *

Displaying hardware IDs using DevCon

This will show you the details of all the devices on your computer. The results will also contain the hardware IDs.

For example, we’ve highlighted the hardware ID for theStandard PS/2 Keyboard in the image below.

Selecting the hardware ID for the Standard PS2 Keyboard

Remember, if there’s more than one hardware ID, always pick the first option. This means the hardware ID for the keyboard, in the example above, isACPI\VEN_IDEA&DEV_0102 .

If you want to explore the Device Console in detail, check outthe various ways to use Dev Con on the Microsoft website.

You’ve Successfully Found the Hardware IDs of Your Devices

Hardware IDs make it easy for you to identify all your devices and drivers. The good news is that it’s quite easy to find these IDs.

If you want to check your hardware IDs quickly, try the Device Manager method in this article. Otherwise, any of the other methods we’ve covered should help.

Also read:

  • Title: Detailed Exploration: Retrieving the True Nature of Device IDs in Windows
  • Author: Joseph
  • Created at : 2024-06-25 12:03:41
  • Updated at : 2024-06-26 12:03:41
  • Link: https://windows11.techidaily.com/detailed-exploration-retrieving-the-true-nature-of-device-ids-in-windows/
  • License: This work is licensed under CC BY-NC-SA 4.0.