How to Block USB Ports on a School Computer: Step-by-Step Guide 2026
A school computer that accepts any USB drive can bring malware in and carry student records out. To block USB ports on a school computer running Windows 10 or 11, an administrator enables the Group Policy setting All Removable Storage classes: Deny all access, or sets the USBSTOR registry value Start to 4, then restarts the PC. Keyboards and mice keep working.
Use Group Policy on Windows Pro, Education or Enterprise, and the registry value on Windows Home. Restart, plug in a spare drive from a standard student account, and confirm that no drive letter appears. Most guides stop at the registry tweak; this one also covers the three school-specific traps that make a block silently fail.
| Applies to | School-owned PCs on Windows 10 and 11 |
|---|---|
| Time needed | 10 minutes per PC, plus one pilot test |
| Difficulty | Moderate; administrator rights required |
| Cost | Free with built-in Windows tools |
| Needs | Administrator account, no internet connection |
| Last verified | November 2026 |
In this guide
- Quick answer and what you need
- Why block USB ports at all
- Step by step
- Built-in Windows methods compared
- Best free methods and the device class table
- USB blocking software
- USB malware blocker
- Common mistakes
- How to verify it worked
- Is this enough?
- Allow approved drives only
- Re-enable USB ports safely
- Netsoftwares USB Block
- Software-based tutorial
- Frequently asked questions
- Block USB: in-depth answers
- Our verdict
How to Block USB Ports on a School Computer: Quick Answer
To block USB ports on a school computer, sign in as an administrator, open the Local Group Policy Editor on Windows Pro, Education or Enterprise, enable All Removable Storage classes: Deny all access, and restart. Windows Home has no editor, so use the USBSTOR registry value instead.
Pick your path
What do you need help with right now?
What you need before starting
- An administrator account on the PC, approved by school IT.
- The Windows edition, shown under Settings > System > Activation.
- One spare flash drive and one USB keyboard for testing.
- A written rollback step, covered in the re-enable section below.
Windows edition note: Home versus Pro
The Local Group Policy Editor (gpedit.msc) ships with Windows Pro, Enterprise and Education only. Microsoft Q&A answers confirm Windows Home does not include it, so Home PCs rely on the registry method in the next sections.
Both methods need administrator rights and both reverse cleanly: Group Policy returns to Not configured, and the registry value returns to 3. Note the original state before changing a lab PC.
Why Block USB Ports at All
School computers share logins, hold student records and sit on a network that one infected flash drive can reach. Blocking USB storage removes the easiest route for malware in and files out, while keyboards, mice and cloud tools keep working normally for lessons.
USB data theft and insider-risk basics
A student or visitor with a flash drive can copy a class register, exam paper or staff file in seconds, and no one sees it happen. A storage block shuts that door for every user of the PC, and the log trail in the software section shows who tried.
How malware spreads from USB drives
A drive moved between a home PC and a school lab carries whatever infected the first machine. Malware on a stick usually needs a person to open a file or shortcut, and shared lab PCs give it many chances. The same drive can also reach teachers' machines through the next file handed over.
Disabling a USB port in Device Manager blocks drives only.
Disabling a USB controller or hub switches off everything on it, including keyboards and mice, as How-To Geek and NinjaOne both warn.
For a wider look at stopping data leaks through removable drives, the guide to USB data leak prevention goes beyond schools.
Step-by-Step: Block USB Ports on a School Computer
The fastest school-safe route has five steps: confirm the Windows edition, create a restore point, enable the Group Policy removable-storage deny setting or set the USBSTOR registry value to 4, restart, then test with a spare flash drive and a keyboard before trusting the result.
Check the edition and create a restore point
Open Settings > System > Activation to read the edition. Create a restore point so a mistake costs minutes, not a reinstall.
Option A: Group Policy (Pro, Education, Enterprise)
Press Win + R, type
gpedit.mscand open the path below. Enable the setting, click OK, and optionally set the force-reboot timer in the same folder.Computer Configuration > Administrative Templates > System > Removable Storage Access All Removable Storage classes: Deny all access = EnabledOption B: the USBSTOR registry value (any edition)
Open PowerShell with Run as administrator and run one of these. Value 4 disables the USB storage driver; value 3 turns it back on.
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 4 # to undo: -Value 3Restart the PC
Microsoft notes that if no reboot is forced, the access right does not apply until Windows restarts. In a lab, schedule the restart for after school hours.
Test as a student
Sign in with a standard account, plug in a spare drive, and confirm no drive letter appears. Check the keyboard and mouse still respond, then log the result.
Scripting a lab? reg add HKLM\SYSTEM\CurrentControlSet\Services\UsbStor /v Start /t REG_DWORD /d 4 /f sets the same value, and gpupdate /force refreshes policy without waiting for the next cycle.
Built-in Windows Methods Compared
Six native routes can block USB on a school PC, and they differ most in reach: Group Policy and Intune scale to a lab, the registry value suits single machines, and Device Manager is too blunt because it also silences keyboards. The table compares them, with dedicated software for contrast.
| Method | Difficulty | Security | Cost | Best for | Limitations |
|---|---|---|---|---|---|
| Local Group Policy (Deny all access) | Moderate | Good | Free | A few Pro, Education or Enterprise PCs | No editor on Windows Home; needs a restart |
| USBSTOR registry value | Easy | Good | Free | Single PCs and Windows Home | Resets to 3 if the driver was never installed |
| Device Manager: disable USB controller | Easy | Weak | Free | Emergency stop on one PC | Also disables keyboards, mice and every device |
| Device Installation Restrictions | Hard | Strong | Free | Allow-by-device-ID designs | Wrong class blocks input devices |
| Intune Device restrictions: Removable storage | Moderate | Good | Needs Intune licence | Cloud-managed school fleets | Per-drive exceptions need extra tooling |
| BIOS or UEFI port disable | Moderate | Strong | Free | Kiosks with no USB need | Per-vendor menus; blocks keyboards too |
| Dedicated software (USB Block) | Easy | Good | One-time price | Mixed labs needing an approved-drive list | Windows only; versions limited to the vendor list |
| Verdict | Group Policy for labs, registry for single PCs | Avoid Device Manager for routine use |
Method picker
Answer four questions for a recommended route. The default result below applies to a single Pro PC.
For a deeper side-by-side, read Group Policy against registry edits against blocking software. An independent walkthrough of the Device Manager and registry routes is also available from NinjaOne's guide to disabling USB drives.
Best Free Methods to Block USB Ports on a School Computer
The best free method is Group Policy where the editor exists and the USBSTOR registry value where it does not. Both cost nothing, both reverse in one step, and both leave keyboards alone. Device Installation Restrictions are free too but suit experienced administrators only.
- Group Policy deny setting for Pro, Education and Enterprise labs.
- USBSTOR registry value for Home PCs and quick fixes.
- Device Installation Restrictions when only named devices may install. Microsoft documents USB Bus Devices and USB Device as two setup classes; blocking either also blocks input devices.
- Console settings you may already own, such as the Intune removable-storage block or the Google Admin console external storage policy for Chromebooks.
If you want to browse more free options side by side, a roundup of free USB blocking software lists several third-party tools.
USB device class cheat sheet
| Device | Class | Deny all access policy | USBSTOR value 4 | Hub disabled in Device Manager |
|---|---|---|---|---|
| Flash drives and external disks | Mass storage | Blocked | Blocked | Blocked |
| SD card readers | Mass storage | Blocked | Blocked | Blocked |
| Phones in file-transfer mode | Portable device | Blocked | Pilot test | Blocked |
| Keyboards and mice | Input (HID) | Working | Working | Blocked |
| Printers and scanners | Printing | Working | Working | Blocked |
| Headsets and webcams | Audio, video | Working | Working | Blocked |
Phones can use a different driver path than flash drives. Treat the USBSTOR result for phones as unconfirmed and test on one PC.
USB Blocking Software
USB blocking software is a Windows program that stops removable devices, protects its own settings with a password and records which devices were allowed, replacing per-PC registry edits with one console. It suits mixed-edition labs, though it adds a product to license, install and update.
Judge any program on six points: does it cover your Windows versions, can students remove it, does it keep an approved-device list, does it log events, does it work in Safe Mode, and does it need an internet connection. Independent lists such as the ITPRC roundup of USB port locking tools show how crowded the category is.
Where software helps
- Windows Home and mixed editions
- Approved drives without device-ID work
- A log of allowed and refused devices
Where it falls short
- Windows only; Chromebooks need console policy
- Needs licences and updates
- Still cannot stop keyboard-impersonating devices
USB Malware Blocker
A USB malware blocker in a school stops the device before any file is read: storage blocking prevents drive-borne malware, but BadUSB and Rubber Ducky style devices present themselves as keyboards, so a storage block alone does not stop them. Pair the block with standard accounts and device restrictions.
Microsoft's Windows documentation treats removable-storage control and device-installation control as separate layers, and school PCs benefit from both. Physical-access attacks over USB, including direct memory access, are discussed by practitioners on Security Stack Exchange.
No storage block stops an attacker with unsupervised physical access and a keyboard-class device. Keep teacher and office PCs out of student reach and use standard accounts everywhere.
Common Mistakes When You Block USB Ports on a School Computer
Five mistakes cause most failed school USB blocks: disabling the hub in Device Manager, setting USBSTOR on a PC that never loaded the driver, forgetting the restart, skipping a pilot test, and leaving students with administrator rights. Each one has a quick fix, listed below.
Disabling the USB controller in Device Manager. It silences keyboards and mice as well, which leaves a lab PC unusable.
Setting USBSTOR to 4 on a fresh PC. Windows resets the value to 3 when it installs the storage driver on the first drive plug-in.
Skipping the restart. Microsoft states the access right does not apply until the operating system restarts.
Rolling out to a whole lab untested. One pilot PC catches broken teacher drives and phone workflows before term starts.
Renaming or deleting the USBSTOR driver file. It does not make the block stronger and makes the later undo harder.
How to Verify It Worked After You Block USB Ports on a School Computer
Verification takes five minutes: restart, sign in as a standard student, plug in a spare flash drive and confirm no drive letter appears, check that the keyboard still types, then export a gpresult report. Record the date and PC name so the evidence outlasts your memory.
Verification checklist
0 of 6 completed
NinjaOne notes that with the registry value at 4 nothing happens when a drive is connected and the Device Manager entry shows an error, which is the sign the block is live.
Is This Enough? What Else to Do After You Block USB Ports on a School Computer
A storage block is one layer, not a complete defence. Add standard user accounts, a firmware password, current antivirus and a cloud drive for legitimate file transfer, because students will otherwise look for another route. Review the setup at the start of each term.
| Layer | What it stops | Where to set it |
|---|---|---|
| Standard user accounts | Students undoing the block | Windows account settings |
| Firmware (BIOS or UEFI) password | Booting from a USB device | Firmware setup screen |
| Cloud storage for files | The reason people reach for drives | OneDrive or Google Drive |
| Device installation restrictions | Fake keyboards and unknown devices | Group Policy or Intune |
| Antivirus and updates | Malware that arrives another way | Endpoint security console |
Risk score card: is your PC exposed through USB?
A second opinion on the basics is available in a general guide to USB flash drive security.
Our three-part rule: Block, Allow, Log
- Block removable storage by policy on every student PC.
- Allow only named exceptions, approved in writing.
- Log every exception and review the list each term.
How to Allow Approved Drives Only
To allow approved drives only, keep the storage block and add exceptions by device ID, instance ID or serial number. Windows device installation policies evaluate instance IDs first, then device IDs, setup classes and removable devices, so a specific allow rule beats a broad block when layered evaluation is on.
Microsoft Defender for Endpoint device control can match vendor, product and serial number through reusable settings, and a blocking program can keep an approved-device list without ID work. Whichever route you pick, record each approval. Microsoft Q&A also hosts a discussion of password protecting USB ports that shows why password-protected settings matter.
Office USB policy generator
Choose options to draft a short written policy for your staff handbook.
USB STORAGE POLICY FOR ALL STUDENT LAB PCS
1. Removable storage (flash drives, external disks, SD cards) is blocked by default.
2. Keyboards, mice and printers are not affected by this policy.
3. Exceptions are limited to named drives approved in writing by school IT and recorded by serial number.
4. Allowed and blocked device events are reviewed by school IT each month.
5. Changes are applied by an administrator account and take effect after a restart; an after-school restart window.How to Re-enable USB Ports Safely
To re-enable USB storage as the administrator, set the USBSTOR Start value back to 3 or switch the Group Policy setting to Not configured, then restart the PC and test with a known drive. Record who requested the change and when, so the exception has an owner.
If a hub was disabled in Device Manager, expand Universal Serial Bus controllers, right-click the device and choose Enable device. If the PC is locked by a policy you did not set, ask the administrator who owns it; this guide does not cover bypassing a block on a machine you do not manage. For repeat failures, use the troubleshooting guide for a port block that is not working.
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 3Netsoftwares USB Block
USB Block is a Windows program from NewSoftwares.net that stops unauthorized USB drives, discs and network drives, protects its settings with a password and logs allowed devices. People often type the developer as Netsoftwares; the official spelling is NewSoftwares.
The tool we recommend for most readers
Of the options covered, we recommend USB Block for mixed Windows labs where Group Policy is unavailable or where staff need an approved-drive list. The official page describes blocking of USB storage such as flash drives, external disks, SD cards and cameras, plus discs, network access and non-system drives.
Limits we state plainly: it runs on Windows only, installation needs administrator rights, and the product page names Windows 10, 8, 7 and Server 2008 to 2019 but not Windows 11. It also does not address keyboard-impersonating devices.

A listing of the program also appears on Softonic, though the installer from the developer remains the version we point to.
Software-Based USB Blocking Step-by-Step
Blocking with software takes five steps: install as an administrator, switch on the protections you need in Control Center, set a password, add approved drives, and check the log. Allow about ten minutes on one PC, then repeat on each lab machine or use central management.
Install as an administrator
Download the installer from the NewSoftwares download hub and run it while signed in as an administrator; the vendor says administrator rights are required.
Choose what to block
Control Center offers switches for USB devices, discs and floppy drives, network access and non-system drives.
Set a password
Program Options includes Change Password, so settings cannot be changed without it.
Approve your own devices
List staff-approved drives on the Authorized Devices tab.
Review the log
Reports and Logs records allowed devices, timestamps and wrong password attempts.

Run it on one PC first
Pilot the program on a single lab PC, including your Windows version, before buying for a room.
USB Block compared with other options
USB Block competes with free Windows policy on cost and with cloud-managed device control on features. It wins for mixed Windows labs that need a password-protected approved-drive list, and loses for Chromebooks, Macs and fleets already managed in Intune or a similar console.
| Feature | USB Block | Windows Group Policy | Cloud device control (ThreatLocker Storage Control) |
|---|---|---|---|
| Platforms | Windows only | Windows Pro, Education, Enterprise | Agent on managed endpoints |
| Approved-device list | Yes, per the product page | Device IDs, more setup | Yes, console managed |
| Password-protected settings | Yes | Admin rights instead | Console permissions |
| Logging | Allowed devices, times, wrong passwords | Event logs, more work | Cloud reporting |
| Cost model | One-time price on the store page | Included with Windows | Subscription model; ask the vendor |
| Verdict | Best for small mixed labs | Best for domain-joined labs | Best for large managed fleets |
What USB Block covers
According to the official page, USB Block blocks USB storage, optical discs, floppy and Zip drives, network drives and non-system hard drives, lets you whitelist your own devices, and logs allowed devices with timestamps. Each feature below carries a best-for and not-ideal-for note.
Block removable devices
Best for: student lab PCs. Not ideal for: Macs and Chromebooks.
Approved-device list
Best for: teachers with one trusted drive. Not ideal for: large fleets with hundreds of exceptions.
Password and Safe Mode coverage
Program Options shows a Safe Mode protection option and a hack-attempt monitor. Not ideal for: stopping keyboard-class devices.

Deep dive: what the Program Options tab controls
The Program Options tab holds stealth options, Safe Mode protection, a master key option, Change Password and an Uninstall button, plus counters for program deletion attempts, unauthorized uninstall attempts and invalid password attempts.
Safe Mode protection matters on school PCs because a block that disappears in Safe Mode is easy to dodge.

USB Block pricing: what you get
The NewSoftwares store lists USB Block at 49.95 USD as a one-time purchase. The product page does not state trial terms or whether the licence is per PC, so confirm both at checkout and test the installer on a pilot machine before buying for a whole lab.
The product page describes the full version as having no limitations, and the Registered Version tab inside the program shows licence details and a Buy More button for extra computers. For one teacher PC, Group Policy may already cover your need for free. For a mixed lab, a one-time price can be cheaper than the staff time spent on per-PC edits.
Is it worth it? Buy it if you need an approved-drive list and password-protected settings on Windows PCs that lack Group Policy. Skip it if your fleet is Chromebooks or already under Intune.
Prices as listed on the NewSoftwares store; check there for current terms.

Who should use which option
Match the method to the school: a single teacher laptop on Windows Home needs the registry value, a domain-joined lab on Pro needs one Group Policy object, an Intune school district uses the device restriction profile, and a Chromebook cart uses the Admin console external storage setting.
Teacher laptop, Home
Registry value. Software only if you need an approved drive.
Domain lab, Pro
Group Policy object on the lab organizational unit.
Intune fleet
Device restrictions profile, Removable storage set to Block.
Chromebook cart
Admin console external storage devices policy.
Chromebooks fall outside every Windows method here. Google's Admin console exposes an external storage setting for managed devices, which promevo and Samsung Knox documentation both illustrate.
Problems after you block USB ports, and quick fixes
Six problems account for most support tickets after a school USB block: the drive still opens, the registry value resets, a keyboard stops, Group Policy is missing, a phone still transfers files, and a teacher needs an exception. Each has a one-line fix below and a full treatment on its own page.
| Problem | Cause | Fix |
|---|---|---|
| Drive still opens | No restart, or a competing policy | Restart, then run gpresult /h report.html |
| USBSTOR value is back to 3 | Driver was installed after the edit | Use Group Policy, or plug a drive in once then set 4 |
| Keyboard stopped | Hub or USB class disabled | Re-enable the controller from another input path |
| gpedit.msc not found | Windows Home | Use the registry value or upgrade the edition |
| Phone still transfers | File-transfer mode on a path you did not test | Enable Deny all access and pilot-test phones |
| Teacher needs a drive | No exception process | Approve by serial number and log it |
The full fault-finding tree is on the page about a school USB port block that is not working, and the rollout order for many PCs is in the lab rollout checklist.
Policy rollout checklist for school labs
0 of 5 completed
Frequently asked questions
These fourteen questions cover the Windows edition problem, keyboards and charging, approved drives, re-enabling ports and what USB Block supports. Use the filters to narrow the list by topic, and open any question for a short direct answer.
How to block usb ports on a school computer?
Sign in as an administrator, open the Local Group Policy Editor with gpedit.msc, and enable All Removable Storage classes: Deny all access under Computer Configuration, Administrative Templates, System, Removable Storage Access. Restart the PC. On Windows Home, set the USBSTOR Start value to 4 instead, and test with a spare drive before a lab rollout.
Can I block usb ports on a school computer without paid software?
Yes, Windows already includes what you need. Group Policy on Pro, Education and Enterprise, plus the USBSTOR registry value on every edition, both block removable storage at no cost. Paid software only adds extras such as an approved-drive list, password-protected settings and device logs. Choose it for those extras, not for the block itself.
What is the fastest way to block usb ports on a school computer?
Running one command in an administrator PowerShell window is fastest: set the USBSTOR Start value to 4, then restart. That takes under a minute per PC but only works after Windows has loaded the storage driver at least once. For a whole lab, a single Group Policy object saves far more time than editing each PC.
What mistakes should I avoid when I block usb ports on a school computer?
Avoid disabling the USB hub in Device Manager, because that also switches off keyboards and mice. Skip the registry method on a PC that has never seen a USB drive, since Windows resets the value. Do not skip the restart or the pilot test, and write down a rollback step before you touch a lab.
How do I check that it worked after I block usb ports on a school computer?
Restart the PC, sign in as a standard student account and plug in a spare flash drive. No drive letter should appear in File Explorer, while a keyboard or mouse on the same ports should still respond. Then run gpresult /h report.html to confirm the policy applied, and keep the result with your change record.
Can I block USB storage but keep my keyboard and mouse working?
Yes. The removable-storage policy and the USBSTOR registry value target storage drivers only, so keyboards, mice and printers keep working. The method to avoid is disabling the USB root hub or whole device classes, which switches off every device on those ports, including the input devices you still need.
Does blocking USB ports stop phone charging?
Charging keeps working under a storage block, because a phone only needs power from the port. A phone in file-transfer mode counts as a portable device, which the Deny all access policy covers, so the phone charges but its files stay out of reach. Disabling the whole hub is the approach that changes this.
Will USB blocking work on Windows Home?
The registry method works on Windows Home, while the Group Policy method does not, because Home ships without the Local Group Policy Editor. Set the USBSTOR Start value to 4 in Registry Editor or PowerShell, restart, and test. Upgrading the PC to Pro or Education is the alternative if you want policy control.
How do I re-enable usb ports as the administrator?
Set the USBSTOR Start value back to 3, or change the Group Policy setting to Not configured, then restart the PC. If someone disabled a hub in Device Manager, right-click it and choose Enable device. Record who asked for the change, and test with a known drive afterwards.
Can I allow only one approved USB drive?
Yes, though not with the single Deny all access switch. Windows device installation policies can allow one device ID or instance ID, and Microsoft Defender device control can match vendor, product and serial number. A blocking program with an approved-device list is the simpler route when only one or two drives need access.
Can students undo a USB block themselves?
Not from a standard account. Changing HKLM registry values, Group Policy and driver settings needs administrator rights, so the real control is keeping students out of the Administrators group. A shared lab login with admin rights undermines every method in this guide, so fix that before anything else.
Is it acceptable to block USB ports on a school computer?
It is acceptable when the school owns the PC and an administrator approves the change. Write the rule into your acceptable-use policy so staff know why personal drives stop working and how to request an exception. Never change a school-managed computer that you are not authorised to administer.
Which Windows versions does USB Block support?
The official USB Block page lists 32-bit and 64-bit Windows 10, 8 and 7, plus Windows Server 2008, 2012, 2016 and 2019. Windows 11 is not named there, so pilot it on one PC first. The program is Windows only, so Chromebooks and Macs need their own management settings.
Do USB blocks stop a device that pretends to be a keyboard?
No. Devices such as BadUSB or Rubber Ducky announce themselves as keyboards, so a storage block never sees them. Counter them with standard user accounts, device installation restrictions that allow only known keyboard IDs, and physical port covers on machines in public reach.
Block USB
Block USB can mean three different things on a school PC: refuse storage drives, switch off the ports entirely, or allow only named devices. Storage blocking is the usual school choice because it protects data while keeping input devices, printers and headsets available for lessons.
Can you block USB ports on a school computer?
Yes, if you hold administrator rights on a PC the school owns. Group Policy, the USBSTOR registry value, Intune and dedicated software are all supported routes on Windows.
Students on standard accounts cannot change these settings, which is exactly why the accounts matter.
What is the easiest way to block USB ports on a school computer?
For one PC, the PowerShell line that sets USBSTOR to 4. For a lab, one Group Policy object. Easy and good are different questions: the first is quick, the second scales.
Is it possible to block USB ports on a school computer for free?
Yes. Windows includes Group Policy on Pro, Education and Enterprise and the registry method on every edition. Free tools also exist, but each adds software to update, so prefer the built-in routes first.
How do you block removable storage without blocking the ports?
Use the removable-storage policy or USBSTOR value, not Device Manager. Both target storage drivers, so a keyboard in the next port keeps working.
Does the 2026 Windows version change the steps?
Microsoft's removable-storage policy and the USBSTOR service key still apply to Windows 10 and 11 as documented. Windows feature updates can reset local settings in some environments, so repeat the verification checklist after each major update.
Our verdict
For most school IT teams the best answer is Group Policy on Pro, Education or Enterprise PCs and the USBSTOR registry value on Windows Home, both verified with a spare drive. Choose dedicated software only when you need an approved-drive list and password-protected settings across mixed Windows labs.
Block storage, allow by exception, log every exception, and keep students on standard accounts. That combination stops the common risks without breaking lessons. If you want one product to manage exceptions on Windows labs, USB Block is the option we built for it.
Go deeper
Three companion pages extend this guide: one diagnoses a block that fails, one compares Group Policy, the registry and software on rollout and cost, and one gives a lab rollout checklist with pilot, waves and rollback notes.
This guide is published by the NewSoftwares.net team, developer of USB Block. We cover free and built-in options alongside our own, and you can reach the developer through the contact page for support questions.


