php editor Baicao will introduce to you a very useful technique today - prohibiting writing to the USB disk. We all know that a USB flash drive is a very convenient storage device, but sometimes we may not want others to write files to our USB flash drive at will. At this time, disabling writing to the USB disk becomes a necessary operation. This article will introduce in detail how to turn on the write prohibition function of the USB flash drive to make your data more secure.
First enter regedit in the Start menu to enter the Registry Editor.
## Locate the "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Storage" item and see if there is a StorageDevicePolicies subkey .
#If not, right-click on the Storage item and select "New - Item" and change the name to "StorageDevicePolicies" . Note that you do not right-click on the right margin.
Next, right-click in the blank space to the right of the newly created StorageDevicePolicies subkey and select "New—DWORD ( 32-bit) value" and name it "WriteProtect".
Double-click this WriteProtect, and change the "numeric data" to 0 in the pop-up dialog box.
At this time, restart the computer and insert the USB flash drive. The write protection should be removed. If it still doesn't work, the last feasible way is to perform mass production repair and completely reset the USB flash drive. However, the price of this is that the USB flash drive data cannot be retrieved.
The above is the detailed content of Open USB disk and disable writing. For more information, please follow other related articles on the PHP Chinese website!