USB security guide for Windows
How to Let Only Approved USB Drives Work on a Windows PC
A full block stops infections and also stops your own backup drive. An allow list keeps the block and lets named drives through, if each one can be told apart.
To allow approved USB drives only, block storage by default, read each trusted drive’s hardware or instance ID, and add that ID to an allow list. Windows can do this with device-installation policy on editions that include Group Policy. Software with an authorized devices list does the same job on more editions and adds a record of what connected.
The Name, Test, Review Cycle for Approved Drives
An allow list stays honest only if you repeat three actions: name each drive, test that it is recognised alone, and review the list on a schedule. Skipping the test is how a list ends up approving a whole batch of lookalike drives.
Name means writing down the owner, the purpose and the identity Windows reports. Test means unplugging every other drive and confirming that only this one mounts and that an unlisted drive does not. Review means opening the list every quarter and deleting drives nobody can account for.
Plan the list before you change settings. Count the drives you actually use: the backup disk, the courier stick, the camera card reader. Most home PCs need one to three entries and most small offices fewer than twenty. A list that grows without anyone owning it is the same as having no list.
Read a Drive’s Identity Before You Approve It
Windows identifies a drive by hardware IDs and by an instance ID that often contains its serial number. Read both from Device Manager’s Details tab or from one PowerShell line, and copy the text exactly.
- Plug in only the drive you want to approve.
- Open Device Manager, expand Disk drives, and open the drive’s properties.
- On the Details tab, choose Hardware Ids, then copy the value. Repeat for Device instance path.
Get-PnpDevice -PresentOnly | Where-Object { $_.InstanceId -like 'USBSTOR*' } | Select-Object FriendlyName, InstanceIdThe output lists each connected storage device with its instance ID. A string ending in a long mix of letters and digits followed by &0 usually carries the drive’s serial number. Paste it into your inventory next to the owner’s name. The Hardware Ids list usually holds 3 to 5 lines, ordered from most specific to least, and only the first line pins down one model and revision.
Why Some Drives Cannot Be Told Apart
Not every flash drive reports a unique serial number. Cheap drives from one production batch can share a model ID, and some report no serial at all, in which case Windows invents an instance ID from the port.
An instance ID that begins with a single digit and an ampersand is a warning sign. It means Windows generated the ID from where the drive was plugged, and the same drive in another port will look like a stranger. A list built on those entries approves a port, not a drive.
- Cloned IDs. Two identical sticks from one pack may share an ID, so approving one approves both. A 32 GB and a 64 GB stick from the same maker often share one model ID.
- No serial. Approve by model ID only if you accept that every drive of that model passes.
- Port-bound IDs. Plug the drive into each port you plan to use and check that the ID stays the same.
When a drive cannot be told apart, the safe answer is to retire it and buy one that reports a stable serial. Treat that as the price of an allow list, not a flaw in it.
Build the Allow List with Windows Device Policy
Windows pairs two policies for this job: one that blocks installation of every device nobody described, and one that names the hardware IDs you allow. They work on Pro, Enterprise and Education, and they affect more than storage, so test with a spare PC.
In the policy editor, go to Computer Configuration, Administrative Templates, System, Device Installation, Device Installation Restrictions. Enable “Allow installation of devices that match any of these device IDs” and add each drive’s hardware ID. Then enable the setting that prevents installation of devices not described by other policies. On current builds, Microsoft’s layered evaluation setting replaces that second policy and decides which rule wins when two disagree.
Device setup classes give you a second way to name the same devices. The Disk drives class is {4d36e967-e325-11ce-bfc1-08002be10318}, the Keyboard class is {4d36e96b-e325-11ce-bfc1-08002be10318} and the Mouse class is {4d36e96f-e325-11ce-bfc1-08002be10318}. Allowing the last two classes keeps input devices working while the Disk drives class stays blocked. Windows 10 version 1903 and later include the layered setting, and Windows 11 includes it from the first release. Be careful with scope. A broad prevent rule covers every device type, and a keyboard or mouse that is not on the list can stop working on the next plug-in. Add your input devices to the list first or allow their setup classes.
Drives that Windows has already installed are not removed by these rules, so test with a drive that has never touched the PC or enable the option that applies the rule to devices already present. The whole path suits a managed group better than a home PC, which is why the Group Policy and registry comparison sends single-PC users elsewhere.
Build the Allow List with Software Instead
A software list does the reading for you: plug the drive in, approve it from a window, and the program stores the identity. That removes the copy-and-paste step where most typing mistakes happen.

USB Block keeps storage blocked and holds a list of authorized devices behind a password. The product page lists Windows 10, 8 and 7, so confirm your version before you rely on it. Because the settings are password protected, a colleague cannot quietly add a drive of their own.
For drives that leave the building, pair the list with encryption. USB Secure adds a password to the drive’s contents so a lost approved drive stays unreadable.
Review What Connected and Prune the List
An allow list decays as people change jobs and drives go missing. A short review each quarter, helped by a log of connections, removes drives nobody owns and spots attempts to plug in strangers.

- Export or read the log and mark every entry with no owner.
- Ask the owner of each remaining entry whether the drive is still in use.
- Delete the entries nobody claims, then retest one approved drive and one stranger.
Lists of tools that offer logs, such as AIMultiple’s overview of free USB blocking software, show that this is the feature that separates a lock from a control you can audit.
Questions About Allowing Only Named USB Drives
Can I allow one USB drive and block all others?
Yes. Block storage by default, then add that drive’s ID to an allow list in Group Policy or in software. Test with a second unlisted drive to prove the block still works.
Where do I find a USB drive’s hardware ID?
In Device Manager, open the drive under Disk drives, choose the Details tab and select Hardware Ids. The instance path on the same tab usually holds the serial number.
What if two drives have the same ID?
Approving one approves both, so the list cannot tell them apart. Replace one with a drive that reports a unique serial, or accept that the pair share one entry.
Will an allow list stop a keyboard from working?
It can if the policy covers every device type and the keyboard is not listed. Allow your input devices or their setup classes before you enable the broad prevent rule.
Does an allowed drive still need scanning?
Yes. An approved identity says the drive is expected, not that its contents are clean. Scan it with Microsoft Defender before you open files from it.
How often should I review the approved list?
Four reviews a year, one per quarter, suit a small office of up to 20 drives, with an extra check before any staff departure. Remove entries nobody can explain.
After the List Is Live
With the list in place, the open risks are what the approved drives carry and how you recover when something goes wrong. The main guide covers scanning and verification, and the re-enable page covers the way back if a rule locks out the wrong device.
Ready to keep storage blocked and name your drives?
USB Block keeps a password-protected list of authorized devices.