Home / Prevent USB file transfer
Windows school PCsHow to Prevent USB File Transfer on a School PC: Step-by-Step Guide 2026
To prevent USB file transfer on a school PC, you deny access to removable storage at the operating-system level, then prove it with a test drive. This guide covers Windows 10 and Windows 11 school computers, from free Group Policy and registry settings to dedicated software, and was checked in November 2026.
On Windows Pro, Education or Enterprise, open gpedit.msc, go to Computer Configuration, Administrative Templates, System, Removable Storage Access, and enable “All Removable Storage classes: Deny all access.” Windows Home has no Group Policy Editor, so set the USBSTOR Start value to 4 or use software. Keyboards and mice keep working.
| Applies to | Windows 10 and 11 school PCs; Group Policy needs Pro, Education or Enterprise |
|---|---|
| Time needed | About 10 minutes per PC, plus a pilot on one lab |
| Difficulty | Moderate, administrator account required |
| Cost | Free with built-in tools; USB Block is listed at $49.95 on the store page |
| Needs | Restart or sign-out, a spare test drive, a rollback note |
| Last verified | November 2026 |
How to Prevent USB File Transfer on a School PC: Quick Answer
Preventing USB file transfer means Windows refuses to read or write removable storage on a school PC. Three routes do it: a Group Policy setting, a registry value, or blocking software. Pick by Windows edition and number of PCs, apply it as an administrator, and confirm with a test drive.
Schools ask for this for operational reasons as much as security ones. A student can copy exam files out, bring games in, or plug in a drive that carries malware. The University of Minnesota’s IT guidance lists malware and accidental disclosure of records such as FERPA data among the main risks of removable media, which is why a block at the PC level beats a poster by the door.
Can you prevent USB file transfer on a school PC without admin rights?
No. Every method that blocks USB storage on a Windows PC changes system policy, a driver setting or an installed service, and all of those need an administrator account. A student or standard teacher account cannot apply the block, which is also why they cannot easily undo it.
Can you block one student account but not the teacher’s?
Yes, in part. Microsoft documents user-scope versions of the removable storage policies, so a setting under User Configuration follows the person who signs in. Device-scope settings affect everyone on the PC. For shared lab machines, many administrators block at device scope and allow exceptions through software.
What do you need help with?
Pick a path. Each link works without JavaScript.
The Block, Allow, Prove rule
- Block the classDeny removable storage, not the whole USB controller, so keyboards and mice survive.
- Allow by nameList every approved drive, such as the teacher’s lesson stick, instead of opening the class for everyone.
- Prove itTest with a spare drive and keep a dated note of the result.
Pick the situation closest to yours
Why Block USB Ports at All
A USB flash drive moves data in both directions at about the speed of a hard disk, with no network log. On a school PC that means student records can leave quietly and unvetted programs can arrive, which is the case for blocking storage while leaving other USB devices alone.
Data leaves
Exam papers, grade sheets and student files fit on a drive the size of a key. Cloud uploads leave traces in a filtered network; a drive does not.
Malware arrives
Autorun-style infections spread by drive. Security Magazine notes that removable media is a conduit for malware and theft, and that a drive can even pose as a keyboard.
Classes get distracted
Scalefusion’s school-device guidance points out that for students the motive is often operational: games, personal media and unapproved tools.
Risk scorecard: is your school PC exposed through USB?
The College of St. Rose case in New York involved a former student who destroyed 66 computers with a “USB Killer” device. Software policies do not stop electrical attacks; only port covers or physical control do. Section “Is This Enough?” returns to this limit.
Built-in Windows Methods Compared
Windows ships four ways to stop USB storage: a Group Policy setting, a registry policy value, the USBSTOR driver Start value, and disabling a USB controller in Device Manager. Only the first three target storage specifically; the fourth can switch off every device on that controller, so it suits sealed kiosks only.
| Method | Difficulty | Security | Cost | Best for | Limitations |
|---|---|---|---|---|---|
| Local Group Policy | Easy | Medium; admins can reverse it | Free | Single Pro, Education or Enterprise PCs | Not on Home; per class, not per drive |
| Domain Group Policy or Intune | Moderate | Medium to high | Free with existing licences | Whole labs and districts | Needs a managed setup and testing |
| Registry policy value (Deny_All) | Easy | Medium | Free | One PC, scripts | Microsoft lists the policy for Pro, Enterprise, Education and IoT Enterprise, not Home |
| USBSTOR Start = 4 | Easy | Low to medium | Free | Quick block of installed storage drivers | Resets to 3 if the driver was never installed |
| Disable USB controller in Device Manager | Easy | Blunt | Free | Sealed kiosks | Can disable keyboards and mice too |
| Defender device control | Hard | High | Needs Defender for Endpoint P1/P2 or Defender for Business | Managed fleets with exclusions | Windows 10 and 11 only, servers unsupported |
| Our pick | Group Policy for one lab | Medium | Free | Pro labs | Add software when you need allow lists or logs |
Windows editions decide your options
Microsoft’s policy reference for removable storage lists Pro, Enterprise, Education and IoT Enterprise for the “Deny all access” setting, and Windows SE appears in the same documentation for related settings. Home is not listed. Check your edition under Settings, System, About before you plan a rollout. Our side-by-side comparison of Group Policy, registry and software for USB control goes further on cost, effort and failure modes.
| Device class | Examples | Blocked by storage policy? | Note |
|---|---|---|---|
| Mass storage | Flash drives, external disks, SD card readers | Yes | The class the policies target |
| Optical | CD and DVD drives | Yes | Named separately in the policy list |
| Portable devices | Phones and cameras in file-transfer mode | Should be; test your model | Microsoft says the all-classes setting overrides individual class settings |
| Keyboards and mice | Wired and wireless dongles | No | Human interface class is not storage |
| Printers | USB printers | No | Unless a device-installation rule or Defender Deny policy is added |
| Charging only | Phone on a power port | Typically no | Power does not need a storage driver |

USB block method picker
Step-by-Step: Prevent USB File Transfer on a School PC
The Group Policy route takes six steps on Windows 10 or 11 Pro, Education or Enterprise: open the editor as an administrator, find Removable Storage Access, enable the Deny all access setting, restart, and test with a spare drive. It changes the whole PC, so run it on one machine first.
- Sign in as an administratorStandard accounts cannot open policy tools. Note the edition under Settings, System, About.
- Open the Local Group Policy EditorPress Win + R, type
gpedit.msc, press Enter. If Windows cannot find it, you are on Home; jump to the registry method below. - Find Removable Storage AccessComputer Configuration, Administrative Templates, System, Removable Storage Access.
- Enable the Deny all access settingDouble-click “All Removable Storage classes: Deny all access,” select Enabled, then OK. Microsoft says this takes precedence over each individual class setting.
- RestartRestart the PC so the setting applies to devices already seen. Write the date and PC name in your change log.
- Test itInsert a spare flash drive and try to open it. Then run the checks in the verification section.
Registry version for scripts and Windows Home
The same policy lives in the registry under HKLM, Software, Policies, Microsoft, Windows, RemovableStorageDevices, as a DWORD named Deny_All. Run this from a Command Prompt opened as administrator, then restart.
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices" /v Deny_All /t REG_DWORD /d 1 /freg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices" /v Deny_All /fThe older USBSTOR route disables only the mass-storage driver. Microsoft’s support documentation describes setting the Start value under HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR to 4. It reverts to 3 when you want storage back.
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 4
# revert:
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 3The USBSTOR value only sticks when the USB storage driver is already installed. Computer Hope notes that if the driver has never been installed, Windows installs it on the first drive and resets Start to 3. Plug in one drive first, or use the policy value instead.
Best Free Methods to Prevent USB File Transfer on a School PC
Free methods rank by what you already run. Group Policy wins on Pro and Education labs, a pushed Intune or domain policy wins at scale, and the registry value wins on Home and in scripts. None of them keep a log of which drive was plugged in or let you name one approved drive.
Pro and Education labs
Local Group Policy, then copy the same setting into a domain policy when you outgrow hand edits. Add “Removable Disks: Deny write access” instead if students may read but not copy out.
Managed with Intune
Microsoft Learn documents a settings catalog policy for restricting USB devices on Windows 10 and later. Pilot on a test group first, because the catalog also offers device-installation controls that affect more than storage.
Windows Home
No Group Policy Editor, so use the registry value or software. Third-party tools that add gpedit to Home exist, but Home may still not apply the policies, so test before trusting it.
Read access without write access
Some teachers need to open a student’s project from a drive but must not copy files out. Microsoft documents “Removable Disks: Deny write access” as a user-scope setting that blocks writes while leaving reads. To go further, the BitLocker policy “Deny write access to drives not protected by BitLocker” under Removable Data Drives lets staff write only to encrypted drives you control.
Disable every USB controller in Device Manager and then find the keyboard dead on restart.
Deny the storage class by policy and leave controllers enabled. A tested policy reverses cleanly.
Is it possible to block USB storage for one student account only?
Yes. The user-scope policy variants apply to whoever signs in, so a student profile can carry the block while an administrator profile on the same PC does not. Local Group Policy on a stand-alone PC makes this fiddly; domain policy or Intune targeting makes it routine.
The USB blocker we recommend for school labs
Of the options covered, we recommend USB Block when you need an allow list, a log or one tool across Home and Pro machines. It is our own product, so judge it against the free methods above; it earns its place only where those fall short.

The product page describes USB Block as blocker software for Windows PCs. It blocks USB storage, discs (CD, DVD, Blu-ray, floppy and Zip), mapped network drives and non-system drives, keeps an authorized-device list, asks for a password when someone opens an unauthorized device, and logs allowed devices and wrong-password attempts. The same page includes a schools and labs use case about students copying exam files out.
The limits are as important. USB Block is Windows only. The product page lists Windows 10, 8 and 7 and Windows Server 2008, 2012, 2016 and 2019, and NewSoftwares publishes the supported versions in more than one place, so confirm your exact Windows build on the current page before a lab-wide purchase. It needs administrator rights to install and does not stop a physical USB Killer.
- Mixed Home and Pro fleets
- Teachers who need named drives
- Checking which drive was plugged in
- Chromebooks, Macs, phones
- Districts already on Defender device control
- Electrical attacks
What USB Block controls on a Windows PC

Software-Based USB Blocking Step-by-Step
With USB Block the sequence is install as administrator, set a password, switch on the device groups to block, add approved drives to the authorized list, and test with a spare drive. The tutorial below follows the screens in NewSoftwares’ own interface; the Windows installer comes from the official download link only.
- Download from the official sourceUse the USB Block Windows installer on newsoftwares.net, not a download portal, and run it with administrator rights.
- Set the program passwordThe password protects the settings; anyone opening an unauthorized device is asked for it.
- Open Control Center and switch on the groups to blockThe screen offers USB devices, discs and floppy drives, network access and non-system drives.
- Add approved drivesInsert each approved drive, then add it to the Authorized Devices list. Remove entries with the Remove from List button.
- Review Program OptionsStealth mode, a hotkey and hack-attempt monitoring appear here. Decide who needs to know the software is installed.
- Check Reports and LogsThe log lists device type, name, times inserted and authorized status for recent activity.


Repeating the install across a lab
The product page says administrator rights are needed to install, so repeat the installer on each PC. Keep one note with the program password and the authorized serial numbers so every lab PC matches.
Keep the program password in the same password manager as the Windows administrator account. If it is lost, ask the vendor, not a bypass guide; our “Re-enable” section lists the legitimate route.
USB Block against Windows policy and Defender device control
USB Block adds an authorized-device list, a password and a log to what Group Policy gives you for free, while Microsoft Defender device control adds central reporting and per-device exclusions for managed fleets. Pick by how many PCs you manage and whether a licence for Defender is already in place.
| Feature | USB Block | Group Policy | Defender device control |
|---|---|---|---|
| Edition or licence | Windows PCs; check version list | Pro, Education, Enterprise | Defender for Endpoint P1/P2 or Defender for Business |
| Allow one named drive | Yes, authorized list | No, class level only | Yes, by VID, PID or serial exclusion |
| Activity log | Yes, device log | No built-in drive log | Reporting and advanced hunting |
| Controls CD and DVD | Yes | Yes | Yes |
| Servers | Windows Server 2008 to 2019 listed | Group Policy applies | Servers not supported |
| Admin effort | Installer and password | Per-policy setup | Intune or Group Policy, XML rules |
| Verdict | Fits small mixed fleets | Fits as the free baseline | Fits where already licensed |
How to read the table
Third-party reviewers include USB Block in their roundups. AIMultiple’s list of free USB blocking software describes it as proprietary and Windows-only, and ITPRC’s USB port locking roundup places it fourth in a field of nine tools. Neither replaces trying it on one lab yourself.
How to Allow Approved Drives Only
Allowing only approved drives means blocking the storage class and then adding named exceptions, usually the teacher’s lesson stick or an exam-board drive. Group Policy alone cannot do this; it needs software with an allow list, or Defender device control with vendor ID, product ID or serial number exclusions.
With Defender or Intune
Set removable storage to Block, then add exclusions by vendor ID, product ID or serial number. Administrators on Microsoft’s own forums report that exclusions can behave unevenly, so test each approved drive on a different PC.
With USB Block
Plug in the approved drive, add it to the Authorized Devices list, and test it. Entries leave the list through the Remove from List button, so a lost drive can be revoked in seconds.

Label each approved drive with its serial number and owner in a spreadsheet. A serial list turns a lost drive from a mystery into a ten-second revoke.
How to Verify It Worked After You Prevent USB File Transfer on a School PC
Verify by trying to break your own rule: insert a spare flash drive from a student account, then a keyboard and a charging phone. The drive should show no letter or refuse access, while the keyboard types and the phone charges. Record the date, PC and outcome.
Verification checklist
0 of 7 completed
Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name StartA value of 4 means the storage driver is disabled; 3 means it loads on demand. For the policy value, look for Deny_All set to 1 under the RemovableStorageDevices policy key.
Common Mistakes When You Prevent USB File Transfer on a School PC
Four mistakes account for most failed rollouts: testing only as an administrator, blocking the whole controller, forgetting that policies need a restart or a fresh device event, and leaving no record of the change. Each is cheap to avoid with a spare drive and a note.
Testing as the wrong user
Administrators sometimes bypass user-scope settings. Always repeat the test from a student profile.
Disabling controllers
Turning off a USB controller in Device Manager can kill keyboards and mice on the same controller.
No restart
Microsoft’s setting descriptions do not promise instant effect on devices that Windows has already seen. Restart before you judge it.
No change log
Without a dated note, the next administrator may reverse the policy while hunting an unrelated fault.
If a policy exists but a drive still opens, our walkthrough of a school USB policy checklist for IT admins covers the rollout side, and the fix page below covers the failure side.
Fixing a USB policy that does not block drives
When a drive still opens after the policy, check five things in order: Windows edition, policy scope, restart, driver state and device class. The full triage with a decision flow lives on a separate page; the short version is below.
| Problem | Likely cause | Fix |
|---|---|---|
| Drive still opens | Setting applied to User scope, signed in as administrator | Test from a student account or set device scope |
| Setting missing in editor | Windows Home | Use the registry value or software |
| USBSTOR reverts to 3 | Driver was not installed yet | Use the Deny_All policy value instead |
| Phone opens in file transfer | Portable device class | Test the all-classes policy on that model |
| Keyboard dead | USB controller was disabled | Re-enable it in Device Manager |
Forgot the password of a blocking tool?
For the full triage, read why a USB drive still works after the policy is applied. If you forgot a blocking tool’s password, owner recovery means checking your licence email and then contacting the developer’s support.
How to Re-enable USB Ports Safely
To re-enable USB storage, reverse the exact method you used: set the Group Policy to Not Configured, delete the Deny_All value, set USBSTOR Start back to 3, or switch off the blocking software with its password. Restart, then test with a known-good drive before announcing the change.
- Find your change logRead what was applied, where and when. If there is no note, check both Group Policy and the registry values.
- Reverse that method onlySet “All Removable Storage classes: Deny all access” to Not Configured, or run the delete command from the earlier section.
- Restart and testUse a known-good drive from the administrator account first, then a student profile.
- Update the logRecord the reversal, the reason and who approved it.
Re-enabling for one urgent exam and forgetting to block again. Set a calendar reminder at the same moment you open the ports.
Re-enabling for one drive only
If one approved drive needs access, add it to an allow list rather than opening the class. With Defender or Intune that means a serial number exclusion; with USB Block it means an authorized-device entry.
This section is for administrators reversing their own policy. It does not cover getting around a policy on a PC you do not manage.
Is This Enough? What Else to Do After You Prevent USB File Transfer on a School PC
Blocking storage closes one door. A USB device can still pose as a keyboard, a student can still email files, and electrical USB Killer devices ignore software. Layer an encryption policy, a sanctioned file route, a USB log and physical port control on top.
Encrypt what must travel
BitLocker policies can require write access only to protected drives. Staff drives then stay encrypted if lost.
Give a sanctioned route
Students will find a workaround if there is no easy approved way to share files. Offer one.
Cover the ports
Physical blockers in locked cabinets address hardware attacks that software cannot see.
A rollout also needs sequencing, ownership and a review date. The school USB policy checklist turns this into a one-page runbook.
Secure USB File Transfer
Secure USB file transfer means moving files on a drive only when the drive is approved, the data is encrypted and the transfer is logged. For a school, the stronger answer is often to avoid drives and use a school cloud account, keeping USB for the few cases that need it.
When a drive is unavoidable
Use a named, serial-listed drive from the allow list, encrypted with BitLocker, and record who borrowed it. Wipe it between terms.
When it is not
Share through a school-managed cloud account with expiry dates on links. That leaves an audit trail a flash drive never does.
USB Block pricing and what the purchase covers
The NewSoftwares store lists USB Block at 49.95 USD as a one-time purchase in November 2026. The page does not state a licence count or trial length in readable text, so confirm both at checkout before you plan a lab.
| Windows policy or registry | USB Block | |
|---|---|---|
| Cost | Free | 49.95 USD, one-time, as listed |
| Allow list | No | Yes |
| Activity log | No | Yes |
| Edition limits | Group Policy needs Pro, Education or Enterprise | Windows only; check version list |
| Admin rights | Required | Required to install |
Is it worth it?
If one lab on Pro edition just needs a block, probably not; use Group Policy. If you need an allow list or a record, the one-time cost set against staff time is easy to total.
View full version pricing →Which method fits which school PC setup
Match the method to your setup: a single Pro lab uses Local Group Policy, a managed fleet uses Intune or domain policy, Home laptops use the registry or software, and any site needing an allow list or log adds USB Block. The table gives the honest alternative for each.
| Setup | Recommended method | Does USB Block fit? | Honest alternative |
|---|---|---|---|
| Single computer lab, Pro | Local Group Policy | Only if you need an allow list | Registry Deny_All value |
| Home-edition laptops | Registry or software | Yes | Upgrade to Pro |
| District fleet on Intune | Intune policy | Maybe for exceptions | Defender device control |
| Library or kiosk PCs | Policy plus port covers | Yes, with stealth mode | Disable controller |
| Chromebooks and Macs | Platform’s own admin console | No, Windows only | MDM profile |
How to use this table
Find the row closest to your setup, then read across. The honest alternative column is there because a free route is sometimes the right call.
USB Secure
Folder Lock
Folder Protect