Wednesday, February 4, 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 especially 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 to Disable the USB
  • Change its value to 3 to Enable the USB
  • Sometimes a reboot will be required for the changes to take 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.

No comments:

Windows Server 2008 R2 0x80072F8F Windows Activation Error.

  The Windows activation error code 0x80072F8F may occurred while trying to activate Windows 7 or Windows Vista. As Microsoft says the error...