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.
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
You will then get access to the Windows Registry Editor (Pictured)
Navigate (Double click) to
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.
E-zone School of Computing
0752 111 223 / 0772 111 223
This post was last modified on September 18, 2019 5:58 pm
On Monday, September 02, 2019 I arrived in Dublin, Ireland as a beneficiary of the Irish Aid Fellowships 2019/2020 (now called Ireland-Africa…
In late June 2012, I came back from Gulu University, with all my belongings after finishing the 3-year Bachelor of…