Sunday, 17 May 2015

Disable/Enable the USB drive in Windows 7



Sometimes it is necessary to Block or Disable the USB to prevent your PC from viruses and Trojans specially when it is in a crowded area like in Office, School or College.
Here, I'm gonna show you a simple trick to Disable/Enable the USB drive in your PC without any third party software by simply making changes in the Windows registry.

  • Open registry. Window Key+R > type regedit
  • Navigate to the following registryHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
  • There in the right content pane search for REG_DWORD Start
  • Double click on it and a new small pop box will appear.  
  • Change its value to 4 for Disable the USB 
  • Change its value to 3 for Enable the USB 
  • Sometimes a reboot will be required for the changes to make effect 



    Alternative Method:

    Open Notepad

    Copy the following code

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

    Save it as > block.bat

    Again open notepad
    Copy the following code

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

    Save it as unblock.bat

    Click block.bat file > run as administrator to disable the USB drive.

    Click on unblock.bat file > run as administrator to enable the USB drive.

    Keep Learning. Keep Rocking 

No comments:

Post a Comment