Block USB drive in windows

Pallav Kumar Singh
20-01-2016 15:52:04
Rate:

Here you can learn about, how to block USB drive of any windows PC.

Follow these simple steps:


Block USB Drive:

1st way

  1. Go to run or press Windows+R key from keyboard.
  2. Type regedit
  3.                  
                              
    1_run.png (399×206)

  4. Go here "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR"
  5.   
            
    1_regedit.png (628×402)
  6. Here you can see "Start" REG_DWORD having data 0x00000003 (3). This indicates that your USB drive is unlock.
  7. To block USB drive change "Start" value to 4 by double click on that.
  8. Now your USB drive is blocked. Re-start your PC if it doesn't work.
  9. To un-block USB Drive change value 4 to 3.
There is another simple way to do this. Put all this in a batch file and run that.

2nd way

  1. create a batch (.BAT) file and edit it with 

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

  3. To Un-Block USB drive change command with

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

This is very useful idea where there is security a major concern. 

Windows, OS,



Software Engineer (India)
pallav.kumar837@gmail.com
+918010265036








Search