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.
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.
| Applies to | Windows 10 and 11 Pro, Enterprise, Education |
|---|---|
| Time needed | 15 minutes |
| Difficulty | Easy to moderate |
| Cost | Free |
| Needs | Two drives, a second administrator account |
| Last verified | November 2026 |
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.
Reload and restart
Run
gpupdate /forcein an administrator prompt, then restart.Approved drive
Plug it in and confirm a drive letter in File Explorer.
Unapproved drive
Plug in a different drive and confirm no drive letter appears.
Policy report
Run
gpresult /h policy.htmland open it; the Device Installation settings should be listed under Computer Configuration.Record
Write the result in a dated change record.
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.
| Approved drive | Unapproved drive | Meaning | Next step |
|---|---|---|---|
| Opens | Blocked | Policy works | Record and keep |
| Blocked | Blocked | A node ID is missing | Read the blocked-drive checks |
| Opens | Opens | Old driver or policy not applied | Uninstall device, run gpresult |
| Blocked | Opens | Wrong IDs or editions mismatch | Recollect 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.
| Level | Action | When to use it |
|---|---|---|
| 1 | Set each setting to Not Configured, then gpupdate /force | The editor opens normally |
| 2 | Import the registry export saved before the change | The editor will not open or values look wrong |
| 3 | Sign in with another administrator account | The 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.
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.