Find a USB Drive's Vendor ID and Serial Number
Every USB allow-list rule needs an identifier, and Windows shows it in two places you can read in under a minute.
Part of our guide to USB whitelist software for Windows.
To find a USB drive's vendor ID and serial number on Windows, open Device Manager, view the drive's Properties, choose Details and read Hardware Ids and Device instance path. PowerShell's Get-PnpDevice returns the same values, which lets you check one reading against the other.
| Applies to | Windows 10 and Windows 11 |
|---|---|
| Time needed | 2 minutes per drive |
| Difficulty | Easy |
| Cost | Free |
| Needs admin | Not to read; yes to apply |
| Last verified | November 2026 |
Read the Identifiers in Device Manager
Device Manager shows a drive's identifiers on the Details tab of its Properties window. Plug in the drive, open Device Manager, expand Disk drives, double-click the drive, choose Details and pick Hardware Ids, then Device instance path. Microsoft's guidance also suggests View, then Devices by connection, to trace the parent device.
Plug in the drive
Use the port you will use day to day.
Open Device Manager
Press Win + X and pick Device Manager.
Open the drive's Properties
Double-click the entry under Disk drives.
Choose the Details tab
Select Hardware Ids, copy the lines, then select Device instance path and copy that too.
Read the Same Values With PowerShell
PowerShell returns the same identifiers as text you can paste into a policy. Get-PnpDevice lists present USB devices with their instance IDs, and Get-PnpDeviceProperty returns the hardware ID list for one instance. Reading the value twice, once here and once in Device Manager, guards against copy mistakes.
Get-PnpDevice -PresentOnly | Where-Object {{ $_.InstanceId -like "USB*" }} | Select-Object FriendlyName, InstanceId # hardware IDs for one instance Get-PnpDeviceProperty -InstanceId "USB\VID_xxxx&PID_xxxx\serial" -KeyName DEVPKEY_Device_HardwareIds
The two-reading rule. Read each identifier from two places, Device Manager and PowerShell, before it goes into a rule. A rule built on one reading fails silently when a character is off.
Paste a Path and Read Its Parts
Paste a device instance path below and the tool splits it into bus, vendor ID, product ID and the last segment, then says whether the last segment looks like a real serial number. Nothing leaves your browser, and the example shows what a port-derived value looks like.
Instance path reader
Hardware, Compatible and Instance IDs Compared
Windows uses four identifier types for device installation control: device instance IDs, hardware IDs, compatible IDs and device setup classes. They run from specific to general, and a rule can target any one. The more specific the rule, the fewer devices it admits.
| Identifier | Admits | Use when |
|---|---|---|
| Device instance ID | One physical drive | You can read a real serial |
| Hardware ID | One model and revision | Several identical drives are approved |
| Compatible ID | A family of drives | Rarely; it is broad |
| Device setup class | Every device of that type | Allowing keyboards and mice |
When Windows Shows No Real Serial
Some drives report no serial number. Intel's note on USB exceptions explains that Windows then builds the ID from the port, and Acronis documents that only drives assigned a serial at production can be allowed as unique devices. For those drives, allow the model, or retire the drive.
Before an ID goes into a rule
Questions About Reading USB Identifiers
Where do I find a USB drive's serial number in Windows?
Open Device Manager, expand Disk drives, open the drive's Properties and choose the Details tab, then read Device instance path. The last segment after the final backslash is the serial number when the drive reports one. An ampersand-heavy value means Windows generated it.
What is the difference between a vendor ID and a hardware ID?
A vendor ID is the four-digit code that names the manufacturer, while a hardware ID is a longer string that combines vendor, product and often revision. Windows lists several hardware IDs per device, from specific to general, and policy rules can match any of them.
Can two USB drives have the same serial number?
It happens with cheap drives that ship with a copied or blank serial value. If two drives show the same instance ID, a serial-based rule admits both. Prefer drives from a known supplier and test each one by plugging both in, one after the other, and comparing the values.
Is the instance ID the same on every PC?
A drive that reports a real serial number shows the same final segment on every PC, which is why the serial is the stable part of the ID. A port-derived value changes with the port and the computer, so never copy it from one PC into a rule meant for another.
With the IDs in hand, apply them using the approved drives section of the main guide, or authorise the drive in software such as USB Block if you prefer a screen to a policy.
Put the IDs to work
Once you have the IDs, a screen-based authorise step can replace hand-typed policy entries.
Compare the alternatives
Five routes to a USB allow-list.
Approved drive still blocked
Four checks that find the cause.
Re-enable USB ports
Undo a block in a safe order.
Published by the NewSoftwares.net team, the developer of USB Block. Questions about the product go through the developer's contact page.