Skip to content
USB Whitelist DeskUSB Whitelist Desk

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.

Editorial teamLast verified: November 20267 min read

Part of our guide to USB whitelist software for Windows.

Where USB vendor, product and serial identifiers appear in Device ManagerWhere the identifiers liveThis PCDisk drivesGeneric Flash Disk USB DeviceUniversal Serial Bus controllersUSB Mass Storage DeviceProperties > DetailsHardware IdsUSB\VID_xxxx&PID_xxxxDevice instance pathUSB\VID_xxxx&PID_xxxx\serialserial = unique drive
Quick answer

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.

At a glance
Applies toWindows 10 and Windows 11
Time needed2 minutes per drive
DifficultyEasy
CostFree
Needs adminNot to read; yes to apply
Last verifiedNovember 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.

  1. Plug in the drive

    Use the port you will use day to day.

  2. Open Device Manager

    Press Win + X and pick Device Manager.

  3. Open the drive's Properties

    Double-click the entry under Disk drives.

  4. Choose the Details tab

    Select Hardware Ids, copy the lines, then select Device instance path and copy that too.

How a USB device instance path breaks downAnatomy of a USB device instance pathUSBbusVID_0781vendorPID_5567product4C530001...serialVendor plus product names a model. Vendor, product and serial name one physical drive.
Vendor plus product names a model; adding the serial names a drive.

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
Framework

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.

Specificity of the four Windows device identifiersFour identifiers, from general to specificDevice setup classEvery disk driveCompatible IDA generic family of drivesHardware IDOne make, model and revisionDevice instance IDOne physical drive
Narrower identifiers admit fewer devices.
Identifier types and when to use them
IdentifierAdmitsUse when
Device instance IDOne physical driveYou can read a real serial
Hardware IDOne model and revisionSeveral identical drives are approved
Compatible IDA family of drivesRarely; it is broad
Device setup classEvery device of that typeAllowing 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.

More on this topic

Published by the NewSoftwares.net team, the developer of USB Block. Questions about the product go through the developer's contact page.