Home / Test and undo

How to Test a USB Allow-List Policy and Undo It Without Locking Yourself Out

A USB policy that blocks the wrong thing can lock out the keyboard. This page shows how to prove the policy works with two drives, and how to reverse it in three levels if it does not.

Editorial TeamNovember 20265 min readLast verified: November 2026
Quick answer

To test a USB allow-list policy, restart after gpupdate /force, plug in the approved drive and confirm it opens, then plug in an unapproved drive and confirm it does not. To undo it, set the prevent settings to Not Configured, reload policy and restart, or import the registry export you saved first.

At a glance
At a glance
Applies toWindows 10 and 11 Pro, Enterprise, Education
Time needed15 minutes
DifficultyEasy to moderate
CostFree
NeedsTwo drives, a second administrator account
Last verifiedNovember 2026
Illustration of an on and off toggle pair, a circular undo arrow and a short verification checklistONOFF

Run the two-drive test

A policy is finished only when the approved drive passes and an unapproved drive fails. Run both after a restart, because a restart clears cached state. Use a drive you do not mind blocking as the unapproved one.

Four stage flow: export the policy key, change one setting, test with two drives and keep a change record1Exportpolicy key2Changeone setting3Testtwo drives4Keepchange record
The four stages of a safe change: export, change, test, record.
  1. Reload and restart

    Run gpupdate /force in an administrator prompt, then restart.

  2. Approved drive

    Plug it in and confirm a drive letter in File Explorer.

  3. Unapproved drive

    Plug in a different drive and confirm no drive letter appears.

  4. Policy report

    Run gpresult /h policy.html and open it; the Device Installation settings should be listed under Computer Configuration.

  5. Record

    Write the result in a dated change record.

The undo-before-do rule

Write the rollback before you make the change. If you cannot describe how to undo a step, do not take it.

What each result means

Each combination of the two tests points to a specific fault. Both pass means the policy works. Approved blocked points to a missing node ID. Unapproved passes points to an older driver install or a policy that is not applied.

Test result, likely meaning and next step
Approved driveUnapproved driveMeaningNext step
OpensBlockedPolicy worksRecord and keep
BlockedBlockedA node ID is missingRead the blocked-drive checks
OpensOpensOld driver or policy not appliedUninstall device, run gpresult
BlockedOpensWrong IDs or editions mismatchRecollect IDs, confirm edition

For the first fault, the fixes for a blocked allowed drive walk through each check.

Undo the policy: three levels

Undo in the least disruptive order. Level 1 resets the settings in the editor, level 2 imports the registry export you saved first, and level 3 uses another administrator account when the usual one cannot work. Always run gpupdate /force and restart after each level.

Three escalating rollback levels for a USB allow-list policy, from resetting settings to using another administrator accountLevel 1Set to Not ConfiguredPolicy editor, then gpupdateLevel 2Import the saved .regElevated prompt or editorLevel 3Other admin accountOn-screen keyboard if needed
Three escalating rollback levels.
Rollback levels
LevelActionWhen to use it
1Set each setting to Not Configured, then gpupdate /forceThe editor opens normally
2Import the registry export saved before the changeThe editor will not open or values look wrong
3Sign in with another administrator accountThe first account cannot type or click

A software blocker has its own undo: switch off the block in the program, or authorize the device. If the password is lost, use the developer contact page and be ready to show proof of purchase.

If the keyboard is blocked

A policy that prevents undescribed devices can block the keyboard class if you forgot to allow it. Do not reinstall Windows. Use another administrator account or the on-screen keyboard at the sign-in screen, then restore the earlier policy.

  • At the sign-in screen, press Win + Ctrl + O to open the on-screen keyboard if a mouse or touch screen still works.
  • Sign in with the second administrator account you prepared.
  • Set the prevent settings to Not Configured, run gpupdate /force and restart.
Common mistake

Testing while signed in as the only administrator. If the policy blocks input, you have no way back.

Keep a change record

A short change record turns a one-off fix into something the next administrator can repeat. Note what changed, why, the date, the Windows version, the test result and where the rollback files live, so a successor can repeat or reverse it.

Change record checklist

For the setup itself, return to the step-by-step section. Software readers can read about the USB Block activity log as an alternative record, and the Windows installer sits on the official download page.

Questions about testing and undoing

These answers cover what readers ask just before or just after switching a policy on. Each starts with the action to take. They assume you are about to switch the policy on, or have just done so and are checking the result.

Plug in the approved drive and confirm it opens, then plug in a different drive and confirm it does not. Restart and repeat both checks. If the unapproved drive still opens, uninstall its device entry in Device Manager and test again.

Set the prevent settings to Not Configured, run gpupdate /force and restart. If you saved a registry export before changing anything, importing it restores the earlier state. Keep a second administrator account in case the first cannot use its keyboard.

Sign in with another administrator account, or open the on-screen keyboard with the Win, Ctrl and O shortcut at the sign-in screen if a mouse still works. Then allow the keyboard class and set the prevent settings back to Not Configured while you fix the list, so you are never working blind.

Yes when you can. A virtual machine or a spare PC lets you break the keyboard class without consequence. If you only have the one PC, create a restore point and a second administrator account before touching the policy, and write down the rollback first.