Fix a Scheduled USB Block That Is Not Running (Seven Checks)
A scheduled block fails in a small number of ways, and each one leaves a clear trace in Task Scheduler or the registry. Work through the seven checks in order and you will find the break in a few minutes.
Open Task Scheduler, find the task, and read its Last Run Result. 0x0 means the command ran, so look at the registry value and at drives that were already mounted. Any other code means the command or the account is wrong. Fix the account first, then the command.
| Applies to | Windows 10 and 11, Home and Pro |
|---|---|
| Time needed | 10 minutes |
| Difficulty | Easy |
| Cost | Free |
| Needs admin | Yes |
| Last verified | November 2026 |
Seven Checks for a USB Block Task That Is Not Running
Check the account, the trigger, the command, the missed start, the mounted drive, the policy conflict and the history log, in that order. The first two explain most failures.
Confirm the task exists and is enabled
Open Task Scheduler and look for the task name in the library. A greyed icon means it is disabled.
Check the account
On the General tab, the task should run as SYSTEM and not depend on a signed-in user. Tick the highest privileges box.
Check the trigger
Look at the days and the start time in 24-hour form. A trigger set to 6:00 PM works; one set to 6:00 AM does not do what you meant.
Run the command by hand
Paste the exact command into an elevated prompt. If it fails there, it will fail in the task.
Check the missed-start setting
A PC that slept through the time will skip the task unless the start-when-available option is on.
Check for a mounted drive
Remove the test drive, run the task, then plug it back in.
Check for a conflicting rule
A Group Policy or endpoint tool can overwrite the value. Query the key right after the task runs, then again an hour later.
schtasks /query /tn "USB Storage Block" /v /fo listGo top to bottom and stop at the first check that fails. Skipping ahead is how people fix the wrong thing twice.
Read Task Scheduler History to See What Happened
History is switched off on many PCs. Turn it on in the Actions pane, then run the task once and read the rows for the start, action and completion events.
With history on, each run leaves a short trail: the task was triggered, the action started, the action completed. A missing completed row means the command did not finish.
| Code | Meaning | Next move |
|---|---|---|
| 0x0 | The command returned success | Check the registry value and mounted drives |
| 0x1 | The command returned an error | Run the command by hand |
| 0x41301 | The task is still running | Wait, then check again |
| 0x41303 | The task has not yet run | Check the trigger time |
If the task shows success and the value is right, the remaining culprit is almost always a drive that was already in use.
Failure Patterns We See Most Often
Four patterns explain nearly every broken schedule: a wrong account, a sleeping PC, a quoting slip in the command and a second tool fighting the value. Each has a distinct fingerprint.
The account pattern
A task created from a normal prompt without the SYSTEM option inherits your own sign-in. It then runs only while you are signed in, so the evening block never fires on a PC left at the sign-in screen. The fix is to delete the task and recreate it with the user option set to SYSTEM.
The sleeping PC pattern
Laptops and tidy office PCs sleep or shut down overnight. A morning open task cannot run on a machine that is off, so storage stays blocked until someone wakes it and the missed task is made up. Turn on the start-when-available setting for the open task, and keep the manual rollback close to hand.
The quoting pattern
The command inside the task is a string inside a string. A stray quote mark moves part of the registry command into the wrong place, and the task still saves without complaint. Compare your command with the working version in the main guide, character by character.
The second tool pattern
Endpoint protection, a management agent or a startup script can write the same key. If the value changes back within minutes of your task, look for another writer, not for a fault in the schedule.
Change a task only when its status is Ready. Editing during a run can leave the old action in place and waste an evening of testing.
Questions About Tasks That Do Not Run
Six short answers cover the questions we see most often about failing USB block tasks.
Usually the drive was already mounted when the task ran. Changing the USBSTOR value stops new storage from loading, and a mounted drive can keep working until it is removed or the PC restarts. Unplug the drive, run the task by hand, then plug it in again and watch whether it appears.
A non-zero result means the command returned an error. Task Scheduler does not check your command when you create the task, so a wrong path or quote only shows up at run time. Paste the reg command into an elevated prompt, run it, and read the exact error it prints.
It was probably set to run only when the user is logged on. Recreate it with the SYSTEM account so it runs in the background whether or not anyone is signed in, and give it the highest run level. Then lock the screen, wait for the trigger time and check the registry value.
Yes for the open task. If the PC was off at the scheduled time, the setting that starts a task when available runs it after the next boot. It is off by default, and Microsoft documents a ten minute default delay when it is on, so allow for that before you test the morning case.
Run the open task by hand with schtasks /run and its name, or set the USBSTOR Start value back to 3 from an elevated prompt. Then unplug and replug the drive. If the block returns within minutes, another tool or policy is writing the same value, so look for it.
Some endpoint tools watch security-related keys and may revert or log the change. Check the tool’s event log if the value reads 3 when you expect 4, and read the vendor’s documentation on exclusions before you add one. Do not turn protection off just to make a test pass.
After the fix: keep the schedule healthy
Return to the main guide for the full schedule: how to schedule when USB ports are blocked. Other pages: frequently asked questions and our recommendation. If you want a password and a log behind your schedule, read about USB Block; to protect the data on a drive that leaves the building, see USB Secure.
This guide is published by the NewSoftwares.net team, the developer of USB Block. We recommend our own product alongside other methods. Recommendations reflect our editorial assessment.