Home / Prevent USB file transfer

Windows school PCs

How 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.

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

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.

Illustration of a USB plug under a padlock on a colorful tile grid
At a glance
Applies toWindows 10 and 11 school PCs; Group Policy needs Pro, Education or Enterprise
Time neededAbout 10 minutes per PC, plus a pilot on one lab
DifficultyModerate, administrator account required
CostFree with built-in tools; USB Block is listed at $49.95 on the store page
NeedsRestart or sign-out, a spare test drive, a rollback note
Last verifiedNovember 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

  1. Block the classDeny removable storage, not the whole USB controller, so keyboards and mice survive.
  2. Allow by nameList every approved drive, such as the teacher’s lesson stick, instead of opening the class for everyone.
  3. 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?

Answer five questions. The result updates as you go.

Why this matters

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.

Built-in methods for blocking USB storage on Windows
MethodDifficultySecurityCostBest forLimitations
Local Group PolicyEasyMedium; admins can reverse itFreeSingle Pro, Education or Enterprise PCsNot on Home; per class, not per drive
Domain Group Policy or IntuneModerateMedium to highFree with existing licencesWhole labs and districtsNeeds a managed setup and testing
Registry policy value (Deny_All)EasyMediumFreeOne PC, scriptsMicrosoft lists the policy for Pro, Enterprise, Education and IoT Enterprise, not Home
USBSTOR Start = 4EasyLow to mediumFreeQuick block of installed storage driversResets to 3 if the driver was never installed
Disable USB controller in Device ManagerEasyBluntFreeSealed kiosksCan disable keyboards and mice too
Defender device controlHardHighNeeds Defender for Endpoint P1/P2 or Defender for BusinessManaged fleets with exclusionsWindows 10 and 11 only, servers unsupported
Our pickGroup Policy for one labMediumFreePro labsAdd 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.

USB device classes and what a removable-storage block does
Device classExamplesBlocked by storage policy?Note
Mass storageFlash drives, external disks, SD card readersYesThe class the policies target
OpticalCD and DVD drivesYesNamed separately in the policy list
Portable devicesPhones and cameras in file-transfer modeShould be; test your modelMicrosoft says the all-classes setting overrides individual class settings
Keyboards and miceWired and wireless donglesNoHuman interface class is not storage
PrintersUSB printersNoUnless a device-installation rule or Defender Deny policy is added
Charging onlyPhone on a power portTypically noPower does not need a storage driver
USB Block detailed summary screen showing USB, disc, network and non-system drive status
The Detailed Summary tab of USB Block lists each device group and whether it is allowed or blocked.

USB block method picker

Windows edition
How many PCs
What else do you need
Local Group Policy. Pro, Education and Enterprise include it. Enable All Removable Storage classes: Deny all access, then verify with a test drive.

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.

  1. Sign in as an administratorStandard accounts cannot open policy tools. Note the edition under Settings, System, About.
  2. 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.
  3. Find Removable Storage AccessComputer Configuration, Administrative Templates, System, Removable Storage Access.
  4. 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.
  5. RestartRestart the PC so the setting applies to devices already seen. Write the date and PC name in your change log.
  6. 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.

Block all removable storage classes (Command Prompt as administrator)
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices" /v Deny_All /t REG_DWORD /d 1 /f
Undo it
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices" /v Deny_All /f

The 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.

USBSTOR Start value in PowerShell (run as administrator)
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 4
# revert:
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 3
Common mistake

The 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.

Not that

Disable every USB controller in Device Manager and then find the keyboard dead on restart.

Do this

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.

USB Block product box with red shield design and data leak prevention tagline
USB Block, published by NewSoftwares.net.

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.

Best for
  • Mixed Home and Pro fleets
  • Teachers who need named drives
  • Checking which drive was plugged in
Not ideal for
  • Chromebooks, Macs, phones
  • Districts already on Defender device control
  • Electrical attacks
Get USB Block →

What USB Block controls on a Windows PC

USB Block Control Center with switches for USB devices, discs, network access and non-system drives
The Control Center tab uses one switch per device group, so a lab can block USB storage and discs together.

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.

  1. Download from the official sourceUse the USB Block Windows installer on newsoftwares.net, not a download portal, and run it with administrator rights.
  2. Set the program passwordThe password protects the settings; anyone opening an unauthorized device is asked for it.
  3. Open Control Center and switch on the groups to blockThe screen offers USB devices, discs and floppy drives, network access and non-system drives.
  4. Add approved drivesInsert each approved drive, then add it to the Authorized Devices list. Remove entries with the Remove from List button.
  5. Review Program OptionsStealth mode, a hotkey and hack-attempt monitoring appear here. Decide who needs to know the software is installed.
  6. Check Reports and LogsThe log lists device type, name, times inserted and authorized status for recent activity.
USB Block Program Options tab with stealth mode, password and hack attempt monitoring settings
Program Options holds the password, stealth and monitoring settings.
USB Block Reports and Logs tab with device report and usage report tables
Reports and Logs tabulates devices and who used them.

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.

Tip

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.

USB Block compared with Microsoft’s own controls
FeatureUSB BlockGroup PolicyDefender device control
Edition or licenceWindows PCs; check version listPro, Education, EnterpriseDefender for Endpoint P1/P2 or Defender for Business
Allow one named driveYes, authorized listNo, class level onlyYes, by VID, PID or serial exclusion
Activity logYes, device logNo built-in drive logReporting and advanced hunting
Controls CD and DVDYesYesYes
ServersWindows Server 2008 to 2019 listedGroup Policy appliesServers not supported
Admin effortInstaller and passwordPer-policy setupIntune or Group Policy, XML rules
VerdictFits small mixed fleetsFits as the free baselineFits 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.

Four-step flow for allowing approved USB drives only on a school PCBlock thestorage classAdd nameddrivesLog everyplug-inReview eachtermAllow by name, never by blanket exception
The allow-list cycle: block, name, log, review.

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.

USB Block Authorized Devices tab with serial number, device type and device name columns
The Authorized Devices tab.
Tip

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

Read back the USBSTOR value (PowerShell)
Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name Start

A 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.

Quick troubleshooting: problem, cause, fix
ProblemLikely causeFix
Drive still opensSetting applied to User scope, signed in as administratorTest from a student account or set device scope
Setting missing in editorWindows HomeUse the registry value or software
USBSTOR reverts to 3Driver was not installed yetUse the Deny_All policy value instead
Phone opens in file transferPortable device classTest the all-classes policy on that model
Keyboard deadUSB controller was disabledRe-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.

  1. Find your change logRead what was applied, where and when. If there is no note, check both Group Policy and the registry values.
  2. Reverse that method onlySet “All Removable Storage classes: Deny all access” to Not Configured, or run the delete command from the earlier section.
  3. Restart and testUse a known-good drive from the administrator account first, then a student profile.
  4. Update the logRecord the reversal, the reason and who approved it.
Common mistake

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.

Four controls that make a USB drive transfer safer in a schoolApproveddriveEncryptedwith BitLockerLoggedplug-inWipedeach termIf a drive is needed, apply all four
A safer drive transfer applies four controls together.

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.

Free methods against USB Block
Windows policy or registryUSB Block
CostFree49.95 USD, one-time, as listed
Allow listNoYes
Activity logNoYes
Edition limitsGroup Policy needs Pro, Education or EnterpriseWindows only; check version list
Admin rightsRequiredRequired 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.

Decision guide by school setup
SetupRecommended methodDoes USB Block fit?Honest alternative
Single computer lab, ProLocal Group PolicyOnly if you need an allow listRegistry Deny_All value
Home-edition laptopsRegistry or softwareYesUpgrade to Pro
District fleet on IntuneIntune policyMaybe for exceptionsDefender device control
Library or kiosk PCsPolicy plus port coversYes, with stealth modeDisable controller
Chromebooks and MacsPlatform’s own admin consoleNo, Windows onlyMDM 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.

Frequently asked questions about school PC USB blocking

Filter the questions by topic. Every answer is visible without JavaScript.

Deny access to removable storage at the operating-system level. On Windows 10 or 11 Pro, Education or Enterprise, enable All Removable Storage classes: Deny all access in Group Policy. On Home, set the USBSTOR Start value to 4 or install blocking software, then test with a spare drive.

Yes. Local Group Policy and the registry are free and already in Windows. Group Policy needs Pro, Education or Enterprise; the registry route works on Home for storage drivers that are already installed. You give up per-drive allow lists and activity logs, which need extra tooling.

On one PC, the registry command takes about a minute: set Deny_All to 1 under the RemovableStorageDevices policy key, then restart and test. For a whole lab, the faster path is one policy pushed from a domain controller or Intune, or one software installer.

Skipping the test drive, blocking the wrong scope, and locking yourself out are the big three. Also avoid disabling USB controllers in Device Manager, which can switch off keyboards and mice, and avoid leaving the policy undocumented so the next administrator cannot reverse it.

Plug in a spare flash drive while signed in as a student account. Windows should refuse access or show no drive letter. Then plug in a keyboard and a charging phone to confirm those still behave. Record the date, PC name and result so the check can be repeated.

Yes. Storage policies act on removable-storage classes, not on keyboards, mice or other human interface devices. Disabling a whole USB controller in Device Manager is different and can cut those devices off, so use a storage-class method instead.

Usually not. Charging draws power and does not need a storage driver. What stops is file access, so a phone in file-transfer mode should show no readable storage. Test with your own phone model, because some devices behave differently under portable-device policies.

The Local Group Policy Editor is missing on Home, and Microsoft’s policy table does not list Home for the removable storage settings. The USBSTOR Start value can still stop storage drivers that are installed, and third-party software works on Home, so use one of those.

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 the blocking software off with its password. Restart, then test with a known-good drive before telling anyone it is open.

Group Policy alone cannot name one drive; it works by device class. Microsoft Defender device control and Intune exclusions can allow by vendor ID, product ID or serial number. Dedicated software such as USB Block keeps an authorized-device list you manage with a password.

Our verdict on blocking USB transfer on school PCs

For most single labs on Pro or Education, Local Group Policy with a test drive is the right first move and costs nothing. Add USB Block when you need an authorized list, a log or Home-edition coverage, and always keep a rollback note.

Where to start this week

Pick one PC, apply the Group Policy setting or registry value, run the three-device test, and write the note. Everything else grows from that one tested PC.

Get USB Block → Back to the steps

Go deeper

This guide is published by the NewSoftwares.net team, the developer of USB Block. Free and built-in options are covered alongside our own, and questions about the guide can go to the developer through the NewSoftwares.net contact page.