See Our Top Pick →
Three USB drives where only the one on the allow list is permitted and the other two are deniedAllowedDeniedDeniedUSB\VID_xxxx&PID_xxxx\serialallow list: one device instance ID

Allow Only One Approved USB Drive: Allow-List Setup on Windows

Blocking all USB storage is easy. Allowing one drive while everything else stays blocked is harder, because the rule has to describe the approved drive and keep the keyboard working. This page shows the policy route and the checks that stop you from locking yourself out.

NewSoftwares.net editorial teamPublished November 2026Last verified: November 20268 min read
Quick answer

Use the Device Installation Restrictions policies. Allow the approved drive by device ID, allow the USB host controller, hub and input device classes, then block everything not described by other rules. Build and test it on a spare PC first.

The idea

How an allow list works in Windows

An allow list works in two parts: a rule that blocks every device no policy describes, and a list of exceptions that name the approved drive and the parts it depends on. Both parts are Group Policy settings under Device Installation Restrictions.

Allow-list logic in three parts: deny by default, allow the approved drive, then allow input devices1Deny by defaultBlock devices no rule describes2Allow your driveMatch its device ID3Allow inputKeyboard, mouse, USB hubs
The allow list admits the approved drive and the devices it depends on.

Microsoft lists the settings in Computer Configuration, Administrative Templates, System, Device Installation, Device Installation Restrictions. The ones you need are:

Microsoft’s documentation adds a catch: by default every prevent rule overrides any allow rule, and a rule allowing one device does not work if its parent devices are blocked. For a USB thumb drive, the host controller, root hub and generic hub must be allowed as well.

Step one

Find the approved drive’s IDs

Plug in the approved drive while the PC is still unrestricted, then read its hardware ID and instance ID from Device Manager or pnputil. Copy the most detailed value, which is the first entry in the list.

Command Prompt (admin)
pnputil /enum-devices /connected /ids
PowerShell (admin)
Get-PnpDevice -Class USB -PresentOnly | Select-Object FriendlyName, InstanceId
Get-PnpDevice -Class DiskDrive -PresentOnly | Select-Object FriendlyName, InstanceId

A hardware ID matches every drive of that model. An instance ID matches one device, so use it when only a single drive should work. Drives without a serial number may share instance paths, so test that a second identical drive is actually refused.

Step two

Build the policy in the right order

Add the allow entries first, then turn on the blocking rule, so you never reach a state where everything is blocked and nothing is allowed. Work on a spare PC or a virtual machine, as Microsoft intends these steps for a test lab.

  1. Open the editor.Run gpedit.msc and go to Device Installation Restrictions. This editor is not on Windows Home.
  2. Allow the device classes.In the setup-classes setting, add the USB bus class {36fc9e60-c465-11cf-8056-444553540000} and the classes for your keyboard and mouse. Look them up in Microsoft’s System-Defined Device Setup Classes pages.
  3. Allow the approved drive.Add its hardware ID to the device IDs list, or its instance ID to the instance IDs list.
  4. Allow the controller path.Add the host controller and hub IDs your PC uses. Microsoft’s examples include PCI\CC_0C03, USB\ROOT_HUB30 and USB\USB20_HUB. Yours may differ, so read them from pnputil.
  5. Enable the blocking rule.Turn on “Prevent installation of devices not described by other policy settings”.
  6. Consider the layered order.Microsoft’s layered evaluation setting makes specific matches win over general ones. Do not combine it with the not-described rule, because the layered setting takes effect and the other is ignored.

Microsoft warns that applying a rule to already-installed devices can make a PC unusable, for example by blocking the boot disk or network adapter. Do not tick that option on critical classes.

Keep an administrator override in mind

Microsoft lists a setting that exempts local administrators from these restrictions. Enabling it keeps you able to install devices as an administrator, but it also means an administrator can bypass the rule, so decide which you need.

Step three

Test with two drives and a restart

A good test uses the approved drive, a different unapproved drive, and your keyboard and mouse. Restart first, because installation policies act when a device is installed, and a drive that was installed earlier can keep working.

Allow-list test plan
TestExpected resultIf it fails
Approved drive after restartMounts normallyRecheck its hardware and instance ID
Unapproved driveNo drive letterConfirm the not-described rule is enabled
Keyboard and mouseWorkAdd the missing HID, keyboard or mouse class
Second drive of the same modelMatches your ID choiceSwitch between hardware and instance ID
Phone in file-transfer modeCheck it separatelyPhones use portable device classes

If something goes wrong and local input is lost, the recovery steps are on the enable page. If the unapproved drive still mounts, the causes on the not-working page apply here too, particularly drives that were installed before the rule existed.

The shortcut

Allow-listing without editing policy

A blocking program with an allow list does the same job through a screen. It is the easier route on Windows Home, where the policy editor is absent, or for people who would rather not read device IDs.

The USB Block product page lists an Authorized Devices tab and says authorised drives work without a password prompt. The tool is paid, covers Windows only, and does not name Windows 11 on its page, so test it first. The screen below is from the official product pages.

USB Block Authorized Devices tab listing devices that can be used without a password
The Authorized Devices tab.

Next step

Keep the rule short and tested

A good allow list is short. Approve one drive, write down its ID, and keep the rollback command next to it. The enable guide hold the commands for undoing every layer.

When a built-in command is not enough, our own tool, USB Block, adds a password and an allow list. Our editorial pick and its limits are laid out in the recommendation section on the main guide.

Get USB Block → Back to the main guide

Common questions

Questions about allowing one approved USB drive

Can Windows allow only one specific USB drive?

Yes. Device installation restriction policies can block everything not described by another rule, then allow the approved drive by hardware ID or instance ID. The keyboard, mouse and USB bus parts must also be allowed, or the block can reach them as well.

What is the difference between a hardware ID and an instance ID?

A hardware ID identifies a model of device, so every identical drive matches it. An instance ID identifies one physical device, including its serial number where the device provides one. Use the instance ID when only one specific drive may work.

Where do I find a drive’s IDs?

In Device Manager, open the drive’s Properties and choose the Details tab, then select Hardware Ids or Device instance path. From the command line, pnputil /enum-devices /ids lists instance IDs, class GUIDs, hardware IDs and compatible IDs for every device.

Does this work on Windows Home?

The Local Group Policy Editor is not included in Home, so the policy route has no editor there. Microsoft documents these settings as Group Policy options, so on Home a software allow list is the practical choice.

Can I lock myself out with these policies?

Yes. Microsoft warns that blocking USB host controllers, hubs or the retroactive option without allowing the devices behind them can lock users out, and describes the steps as intended for a test lab. Build and test the rule on a spare PC first.

Is there an easier way than policies?

A dedicated blocker with an allow list does the same job through a screen. USB Block’s product page lists an Authorized Devices tab for this purpose, with a password. It is a paid option, and a policy needs no extra program.