4 Quick Ways to Check Hardware ID (HWID) of a Device in Windows 11
A hardware ID (HWID) is a number that identifies a hardware component in your PC, such as a monitor or GPU. It is useful for finding available driver packages.
One device can have multiple HWIDs. If you’re wondering how to check Hardware ID (HWID) in Windows 11, we will list four methods to look it up. Let’s begin.
The easiest way to find the Hardware ID (HWID) is by using the Device Manager. It contains all the information on the devices. Here’s how to do it: Right-click on the Start button to open the Power User menu. Locate and click on Device Manager.
Step 2: Scroll down to find the device in the list and right-click on it. Choose Properties from the context menu.
Step 3: Switch to the Details tab.
Step 4: Select Hardware Ids from the drop-down list below the Property option.
Step 5: Under the Value section, you will see the Hardware IDs associated with the device.
Step 6: To copy the HWID, simply right-click on a value and select Copy.
Step 7: Close the Device Manager window.
If the Device Manager is not working on your PC, you can use the Command Prompt to find the Hardware ID of any device. Follow these steps:
Step 1: Press the Windows key to open the Start Menu. Type “cmd” in the search box and press Control + Shift + Enter.
Step 2: The User Account Control window will appear. Click Yes to open the Command Prompt with admin privileges.
Step 3: Type the command and press Enter:
DISM /Online /Get-Drivers /all /Format:Table > C:\a.txt
Step 4: The command creates a text file with the driver details to simplify navigation in the Command Prompt window.
Step 5: Use the Windows + E keyboard shortcut to open the File Explorer. Go to the C drive and open the newly created text file.
Step 6: Copy the Published Name of a device. The command to find the Hardware ID is:
DISM /Online /Get-DriverInfo /Driver:Published Name
Step 7: Replace the Published Name part of the command with the relevant text. The updated command is:
DISM /Online /Get-DriverInfo /Driver:oem77.inf
Step 8: Execute the command by pressing Enter to generate the HWID for the device.
Step 9: Close the Command Prompt window.
3. Using PowerShell
To search for a device’s Hardware ID using PowerShell, use the Get-PnPDevice cmdlet. Here’s how:
1. Open the Start Menu by pressing the Windows key.
2. Type “powershell” in the search box and press Control + Shift + Enter simultaneously.
Step 2: User Account Control window will launch. Click Yes button to open PowerShell with administrator privileges.
Step 3: Type the command and press Enter:
Get-PnpDevice -PresentOnly | Sort-Object -Property “Class” | Format-Table -AutoSize > D:\CID.txt
Step 4: The above command will save the results to a text file in the D drive. We did this because the results won’t be completely visible in the PowerShell window.
Copy the device’s Instance ID from the text file. The command to check the Hardware ID using the Instance ID is:
Get-PnpDeviceProperty -InstanceId “Instance ID” Format-Table -AutoSize
Replace the text inside the “Instance ID” part with the ID you copied from the text file. The final command will look something like this:
Get-PnpDeviceProperty -InstanceId “USB\VID_13D3&PID_3563&MI_00\7&1D754FA2&0&0000” Format-Table -AutoSize > D:\HWID.txt
Export the results to a file named HWID on the D drive. Open the file and locate the entry ‘DEVPKEY_Device_HardwareIds’ in the KeyName column. The corresponding value in the data column is the Hardware ID of the device.
4. Using Microsoft’s Windows Drivers Kit
Microsoft offers a tool in the Windows Driver Kit (WDK) to check the Hardware IDs of devices on your PC. Since the Windows Device Console tool isn’t included with Windows 11, you must download and install the WDK to access the tool on your PC. Here’s how:
Step 1: Download Windows 11 WDK.
Step 2: Run the installer file and install the WDK on your PC.
Step 3: Press the Windows + E keyboard shortcut to open the File Explorer.
Step 4: Go to the address bar, paste the following path, and press Enter:
C:\Program Files (x86)\Windows Kits\10\Tools\10.0.22621.0\x64
Step 5: Right-click in the File Explorer window and select Open in Terminal.
Step 6: Type the command in the Terminal and press Enter:
devcon hwids * > D:\HWID.txt
Step 7: Similar to the previous methods, we saved the command output to a text file for easier usage. Open the file and view the Device Name and Hardware IDs.
Quickly Find Hardware ID on Windows
There are four methods available to check the Hardware ID (HWID) on a Windows 11 PC. The Device Manager provides a graphical user interface (GUI) while the remaining methods retrieve the HWID using the Terminal.
As Fred Humiston, the author behind Twothirds.us, I focus on providing practical and easy-to-follow guides and solutions for a variety of technical issues that people commonly face.
My articles cover a wide range of topics, from troubleshooting out-of-sync audio on TikTok and managing Firestick devices, to understanding the impact of Capcut on video quality and resolving sound issues on Hisense Roku TVs.
I also delve into more general tech tips, like how to block numbers on landlines or use VPNs without Wi-Fi. My goal is to make technology more accessible and less intimidating for everyone, whether you’re a tech novice or a seasoned user. I strive to offer clear, concise, and helpful advice to make your digital experience smoother and more enjoyable.