Categories: BlogFeatured

How To Disable A Computer’s USB Ports

This year, I was given the privilege to install NComputing in the computer lab of St. Aloysious Senior Secondary School in Wakiso District. The school administration had recommended a shift from standalone computers to a centralized system that made lab maintenance cheaper and also drive electricity bills down.

Read also: NComputing vs Standalone PCs

A week later, I was informed by the school’s administration that the lab I had just setup was down. I found out that the system was heavily infected and all office programs couldn’t run. This, I later found out was caused by infected flash disks that the students brought in.

Read also: How to protect your computer without an antivirus

I advised the teacher in charge to block access to USB storage without telling them. In this article, I will share 2 methods you can use to disable the use of USB ports in your computer lab.

Method 1: Registry Editor

  • Open ‘Run’
  • Type ‘Regedit’
  • Pres ‘Enter’

You will then get access to the Windows Registry Editor (Pictured)

Navigate (Double click) to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

In right side pane Double click on REG_DWORD Start, A pop up window appears.

Change its value to 4 to Disable the USB. Change its value to 3 to Enable the USB

Method 2: Using batch files

Many times, the previous method can be intimidating. Another way to achieve this task is by creating batch files using Notepad.

Copy/paste the following code to notepad

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 4 /f

Save your notepad file as BlockUSB.bat

For it to work, you need to run it as Administrator.

To create an unblock batch file, open notepad and paste the following code

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 3 /f

Save it as UnblockUSB.bat. Remember to run as administrator.

__________________________________
Stephen Dumba
E-zone School of Computing
0752 111 223 / 0772 111 223

This post was last modified on September 18, 2019 5:58 pm

Stephen Dumba

Share
Published by
Stephen Dumba

Recent Posts

Getting banned from whatsApp

Care killed the cat but Curiosity got me banned from WhatsApp, and I am at a loss of what to…

4 weeks ago

How to Install Windows 10, Step by Step

This guide will take you through the steps of installing Microsoft’s latest OS, Windows 10 which was released in 2015.…

2 months ago

Is Your Computer Lab ready for UNEB?

When I was still computer lab technician at St. Peter’s SSS Nsambya, Third term was my most hectic term. The…

2 months ago

Ireland-Africa Fellows Programme fulfills my dream for European education

On Monday, September 02, 2019 I arrived in Dublin, Ireland as a beneficiary of the Irish Aid Fellowships 2019/2020 (now called Ireland-Africa…

2 months ago

My unforgettable 7 years of work at Lira Town College

In late June 2012, I came back from Gulu University, with all my belongings after finishing the 3-year Bachelor of…

2 months ago

5 helpful MS-DOS Commands for teachers of ICT

5 DOS commands every teacher of ICT should learn to use to solve common problems at their workplace.

2 months ago