How to Allow Only Approved USB Drives on Shared Windows PCs

Blocking every flash drive is easy. Letting one teacher’s drive or one library-owned drive through, while the rest stay out, takes an allow list. This page shows how to build one with Windows rules and with software, and what to do when an approved drive is still refused.

NewSoftwares.net editorial teamPublished: November 2026Last verified: November 20266 min read
Quick answerPrevent all removable devices, then add an allow rule for the approved drive’s device ID or instance ID in Device Installation Restrictions, and restart. If you prefer software, add the drive to the authorized devices list in USB Block. Test one approved and one unapproved drive before you roll out.
Diagram of one approved USB drive passing a computer port while two unapproved drives are stopped
The idea

What an allow list does

An allow list reverses the default: every storage device is refused unless it appears on a short list you maintain. It suits sites that need one or two named drives without opening the door to all of them.

Shared PCApprovedNo tagNo tagstoppedstopped
An approved drive passes; untagged drives stop

The list is only as good as its upkeep. Give each approved drive an owner, a date and a reason, and review the list once a term, as the main guide’s section on approved drives suggests.

Windows rules

Allowing a drive by device ID in Windows

Windows Device Installation Restrictions let you deny everything and allow named devices. The rule that admits matching device IDs is evaluated before broader class rules, so a specific allow can pass through a general deny.

Ways to define an approved drive
MethodWhat it admitsTrade-offSuits
Instance IDOne physical driveMost precise; breaks if the drive is replacedSingle named teacher or staff drive
Hardware IDEvery drive of one modelEasy to maintain; admits any unit of that modelA bulk order of identical drives
Setup classA whole device typeBroad; admits every device in the classKeyboards, mice and printers
USB Block authorized listDrives you plug in and approvePer PC; password prompt for everything elseSites without a policy editor
  1. Find the device ID

    Plug the approved drive into the pilot PC, open Device Manager, choose View, then Devices by connection, and open the drive’s properties to read its hardware IDs on the Details tab.

  2. Prevent everything else

    In Group Policy, under Device Installation Restrictions, enable the rule that prevents installation of devices not described by other policy settings.

  3. Add the allow rule

    Enable the rule that allows installation of devices matching specified device IDs, and enter each ID in the list.

  4. Restart and test

    Restart, plug in the approved drive and one unapproved drive, and confirm that only the approved one opens.

When an approved drive is refused

Some devices carry several IDs. Search the setupapi.dev.log file in the Windows inf folder for the phrase about restricted installation of devices not described by policy, then add the ID it names.

Microsoft’s community answers confirm that Windows has no built-in password for a USB port, which is why site policies lean on allow rules instead. See the thread on password protecting USB ports.

Software route

Allowing approved drives in USB Block

In USB Block, an approved drive goes on the authorized devices list. The program then opens that drive without a password prompt and asks for the password on any other storage device.

  1. Install and set the password

    Run the installer as an administrator and choose a password only IT knows.

  2. Plug in the approved drive

    Connect the drive and open the Authorized Devices tab to add it to the list.

  3. Test an unapproved drive

    Plug in any other drive and confirm the program asks for the password.

The product page does not name Windows 11, so run this on one pilot PC first. Download USB Block →

USB Block Authorized Devices tab where an administrator adds or removes approved drives
The authorized devices tab on the product’s own screen.

If the approved drive holds records that leave the building, protect its contents too. USB Secure from the same developer adds a password to the drive itself, which an allow list alone does not.

Upkeep

Keeping the approved list honest

An allow list drifts. Drives get lost, staff leave and replacements arrive, so each entry needs an owner, a date and a reason, and the whole list needs a review once a term.

Keep the register in a place the IT team already uses, and remove an entry the day the drive is reported missing. Treat a request for a new approved drive as a small change with a name on it, not a favour. If requests arrive weekly, the rule is wrong for your site, and a managed public PC or a cloud folder may serve the need better.

Common question

Frequently asked questions

Can Windows allow one specific flash drive and block all others?

Yes. Device Installation Restrictions can prevent all devices and then allow installation of devices that match a hardware ID, an instance ID or a setup class. Allowing by instance ID targets one physical drive. Allowing by hardware ID admits every drive of that model, so choose the level on purpose.

Why does my approved USB drive still show as blocked?

A device can carry more than one hardware ID, and a rule that lists only one will miss it. Microsoft’s guidance points to the setupapi.dev.log file, where a restricted installation entry names the device, so you can add the missing ID. Check that the policy has been refreshed and the PC restarted.

Does USB Block let me approve a drive without a password prompt?

Its product page says whitelisted devices open without a prompt while unauthorized ones need the password. Add each approved drive through the authorized devices list, then test that drive and one unapproved drive on a pilot PC before you rely on it.

Should approved drives be encrypted?

Encryption is a sensible extra for any drive that holds student or borrower records and leaves the building. BitLocker To Go covers drives on Pro and Enterprise editions, and a password tool such as USB Secure covers other cases. An allow list says which drive may connect, not what happens if it is lost.

Keep going